Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001154/0.001154, allocations: 80.34 kB / 20.67 MB, free: 3.879 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00107/0.00107, allocations: 160.9 kB / 23.95 MB, free: 0.5977 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9133/0.9133, allocations: 177 MB / 204.1 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.764e-06/1.764e-06, allocations: 0 / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.821e-05/1.998e-05, allocations: 2.281 kB / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.007614/0.007634, allocations: 9.662 MB / 334.2 MB, free: 6.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005613/0.01325, allocations: 3.493 MB / 337.7 MB, free: 2.672 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001462/0.01471, allocations: 83.44 kB / 337.8 MB, free: 2.59 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001782/0.01649, allocations: 0.811 MB / 338.6 MB, free: 1.773 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002399/0.01889, allocations: 0.9468 MB / 339.5 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007978/0.01969, allocations: 463.2 kB / 340 MB, free: 376 kB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002643/0.02233, allocations: 3.046 MB / 343 MB, free: 13.3 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001612/0.02394, allocations: 1.509 MB / 344.5 MB, free: 11.73 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002125/0.02607, allocations: 2.07 MB / 346.6 MB, free: 9.66 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00166/0.02773, allocations: 1.516 MB / 348.1 MB, free: 8.141 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005431/0.02827, allocations: 376 kB / 348.5 MB, free: 7.773 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005704/0.02884, allocations: 479.7 kB / 349 MB, free: 7.305 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000655/0.0295, allocations: 1.118 MB / 350.1 MB, free: 6.184 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009278/0.03042, allocations: 1.138 MB / 351.2 MB, free: 5.043 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00356/0.03399, allocations: 4.95 MB / 356.2 MB, free: 80 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.03399, allocations: 0 / 356.2 MB, free: 80 kB / 314.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.03399, allocations: 4 kB / 356.2 MB, free: 76 kB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001054/0.0341, allocations: 0 / 356.2 MB, free: 76 kB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.004935/0.03903, allocations: 3.374 MB / 359.5 MB, free: 12.65 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/0.03909, allocations: 11.98 kB / 359.6 MB, free: 12.64 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003251/0.03941, allocations: 363 kB / 359.9 MB, free: 12.27 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001817/0.04123, allocations: 370.8 kB / 360.3 MB, free: 11.91 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003059/0.04429, allocations: 1.751 MB / 362 MB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001396/0.04443, allocations: 189.4 kB / 362.2 MB, free: 9.93 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003253/0.04475, allocations: 252.3 kB / 362.5 MB, free: 9.684 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003689/0.04844, allocations: 3.366 MB / 365.8 MB, free: 6.219 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.201e-05/0.04849, allocations: 7.953 kB / 365.8 MB, free: 6.211 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000148/0.04864, allocations: 100 kB / 365.9 MB, free: 6.113 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.262e-05/0.04873, allocations: 128.9 kB / 366.1 MB, free: 5.984 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003049/0.05178, allocations: 2.74 MB / 368.8 MB, free: 3.23 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01108/0.06287, allocations: 9.444 MB / 378.2 MB, free: 9.426 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001242/0.06411, allocations: 1.058 MB / 379.3 MB, free: 8.363 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007504/0.06486, allocations: 0.7109 MB / 380 MB, free: 7.645 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001671/0.06503, allocations: 48.95 kB / 380.1 MB, free: 7.598 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.875e-05/0.06505, allocations: 51.5 kB / 380.1 MB, free: 7.535 MB / 346.7 MB Notification: Performance of pre-optimization done (n=98): time 2.956e-06/0.06506, allocations: 0 / 380.1 MB, free: 7.535 MB / 346.7 MB Notification: Performance of matching and sorting (n=123): time 0.009215/0.07427, allocations: 6.649 MB / 386.8 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.003e-05/0.07431, allocations: 64.41 kB / 386.8 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00193/0.07624, allocations: 1.825 MB / 388.6 MB, free: 14.96 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.603e-05/0.07631, allocations: 45.7 kB / 388.7 MB, free: 14.91 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000855/0.07716, allocations: 1.31 MB / 390 MB, free: 13.58 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002314/0.0774, allocations: 436.3 kB / 390.4 MB, free: 13.15 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002898/0.07768, allocations: 295.4 kB / 390.7 MB, free: 12.86 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.78e-05/0.07775, allocations: 305.1 kB / 391 MB, free: 12.56 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007996/0.07855, allocations: 0.7769 MB / 391.8 MB, free: 11.78 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009643/0.07952, allocations: 1.296 MB / 393.1 MB, free: 10.26 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001847/0.08136, allocations: 2.214 MB / 395.3 MB, free: 7.816 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.108e-05/0.08137, allocations: 8 kB / 395.3 MB, free: 7.809 MB / 362.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.002913/0.08429, allocations: 2.483 MB / 397.8 MB, free: 5.305 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.733e-05/0.08431, allocations: 15.28 kB / 397.8 MB, free: 5.293 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.361e-05/0.08434, allocations: 16 kB / 397.8 MB, free: 5.277 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000396/0.08473, allocations: 239.2 kB / 398 MB, free: 5.031 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008031/0.08554, allocations: 415.6 kB / 398.5 MB, free: 4.625 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001815/0.08735, allocations: 3.019 MB / 401.5 MB, free: 1.371 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008754/0.08823, allocations: 127.8 kB / 401.6 MB, free: 1.246 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.238e-05/0.08831, allocations: 71.98 kB / 401.7 MB, free: 1.176 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001179/0.08949, allocations: 0.8214 MB / 402.5 MB, free: 352 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002858/0.08978, allocations: 198.8 kB / 402.7 MB, free: 152 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002446/0.09222, allocations: 2.035 MB / 404.7 MB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.09223, allocations: 12 kB / 404.7 MB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.09223, allocations: 4 kB / 404.7 MB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.09224, allocations: 3.984 kB / 404.7 MB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005169/0.09741, allocations: 4.456 MB / 409.2 MB, free: 9.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.09742, allocations: 4 kB / 409.2 MB, free: 9.516 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006136/0.09803, allocations: 259.6 kB / 409.5 MB, free: 9.262 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003323/0.09836, allocations: 203.5 kB / 409.7 MB, free: 9.051 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.65e-05/0.09843, allocations: 24 kB / 409.7 MB, free: 9.027 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001935/0.1004, allocations: 2.993 MB / 412.7 MB, free: 5.801 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/0.1004, allocations: 11.88 kB / 412.7 MB, free: 5.789 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003078/0.1034, allocations: 3.136 MB / 415.8 MB, free: 2.605 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007264/0.1042, allocations: 354.6 kB / 416.2 MB, free: 2.258 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001394/0.1043, allocations: 28.11 kB / 416.2 MB, free: 2.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005272/0.1048, allocations: 95.88 kB / 416.3 MB, free: 2.137 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001252/0.105, allocations: 84.78 kB / 416.4 MB, free: 2.055 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-05/0.105, allocations: 39.98 kB / 416.4 MB, free: 2.016 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001321/0.1063, allocations: 1.224 MB / 417.6 MB, free: 0.8008 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1063, allocations: 3.938 kB / 417.6 MB, free: 0.7969 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001172/0.1075, allocations: 484 kB / 418.1 MB, free: 332 kB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00376/0.1113, allocations: 3.791 MB / 421.9 MB, free: 12.46 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002405/0.1137, allocations: 2.114 MB / 424 MB, free: 10.32 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.1137, allocations: 4 kB / 424 MB, free: 10.32 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001126/0.1148, allocations: 1.117 MB / 425.1 MB, free: 9.168 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002004/0.1168, allocations: 497.7 kB / 425.6 MB, free: 8.691 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02307/0.1399, allocations: 18.82 MB / 444.4 MB, free: 5.109 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001179/0.1411, allocations: 1.441 MB / 445.9 MB, free: 3.633 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001006/0.1421, allocations: 0.4999 MB / 446.4 MB, free: 3.129 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001209/0.1433, allocations: 1.016 MB / 447.4 MB, free: 2.109 MB / 410.7 MB Notification: Performance of SimCode: time 1.263e-06/0.1433, allocations: 4 kB / 447.4 MB, free: 2.105 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2004/0.3437, allocations: 49.25 MB / 496.6 MB, free: 76.19 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.452/8.796, allocations: 7.984 kB / 496.6 MB, free: 76.18 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable smpm.is[1] in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv. Warning: Get data of variable smpm.is[1] from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv failed! Error: Could not read variable smpm.is[2] in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv. Warning: Get data of variable smpm.is[2] from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv failed! Error: Could not read variable inertiaLoad.w in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv. Warning: Get data of variable inertiaLoad.w from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv failed! Error: Could not read variable multiSensor.flange_a.phi in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv. Warning: Get data of variable multiSensor.flange_a.phi from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.899550441652536]