Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001552/0.001552, allocations: 115.6 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001411/0.001411, allocations: 213.4 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.456/1.456, allocations: 230.6 MB / 257.5 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1803/0.1803, allocations: 38.53 MB / 352.5 MB, free: 12.58 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002027/0.002027, allocations: 66.56 kB / 492.5 MB, free: 4.926 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3215/0.3235, allocations: 62.47 MB / 0.542 GB, free: 480 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.006919/0.3304, allocations: 4.71 MB / 0.5466 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00253/0.3329, allocations: 1.52 MB / 0.5481 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003438/0.3333, allocations: 20.81 kB / 0.5481 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005159/0.3338, allocations: 124.7 kB / 0.5482 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008587/0.3347, allocations: 281.7 kB / 0.5485 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003545/0.335, allocations: 113.6 kB / 0.5486 GB, free: 11.15 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008621/0.3359, allocations: 0.5153 MB / 0.5491 GB, free: 10.85 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002399/0.3361, allocations: 102.8 kB / 0.5492 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003531/0.3365, allocations: 213.1 kB / 0.5494 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003688/0.3368, allocations: 222.2 kB / 0.5496 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.225e-05/0.3369, allocations: 25.19 kB / 0.5496 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.852e-05/0.3369, allocations: 27.81 kB / 0.5497 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001206/0.3371, allocations: 99.28 kB / 0.5498 GB, free: 10.47 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001872/0.3372, allocations: 181.5 kB / 0.5499 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004861/0.3377, allocations: 387.4 kB / 0.5503 GB, free: 10.09 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.3377, allocations: 0 / 0.5503 GB, free: 10.09 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.3377, allocations: 0.9688 kB / 0.5503 GB, free: 10.09 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.835e-06/0.3377, allocations: 3.938 kB / 0.5503 GB, free: 10.08 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001085/0.3388, allocations: 0.5882 MB / 0.5509 GB, free: 9.59 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/0.3389, allocations: 13.48 kB / 0.5509 GB, free: 9.586 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.849e-05/0.339, allocations: 68 kB / 0.551 GB, free: 9.52 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.537e-05/0.339, allocations: 48.12 kB / 0.551 GB, free: 9.492 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007017/0.3397, allocations: 348.4 kB / 0.5513 GB, free: 9.207 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.536e-05/0.3398, allocations: 19.03 kB / 0.5514 GB, free: 9.199 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.251e-05/0.3398, allocations: 29.58 kB / 0.5514 GB, free: 9.188 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005432/0.3404, allocations: 335.7 kB / 0.5517 GB, free: 8.934 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.3404, allocations: 4.969 kB / 0.5517 GB, free: 8.93 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.925e-05/0.3404, allocations: 10.41 kB / 0.5517 GB, free: 8.922 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.3404, allocations: 7.812 kB / 0.5517 GB, free: 8.922 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003371/0.3408, allocations: 203.1 kB / 0.5519 GB, free: 8.82 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001641/0.3424, allocations: 1.442 MB / 0.5533 GB, free: 7.484 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004104/0.3428, allocations: 197.8 kB / 0.5535 GB, free: 7.324 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001181/0.3429, allocations: 74.62 kB / 0.5536 GB, free: 7.266 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.185e-05/0.343, allocations: 1.281 kB / 0.5536 GB, free: 7.266 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.096e-05/0.343, allocations: 44.97 kB / 0.5536 GB, free: 7.215 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.703e-06/0.343, allocations: 1.062 kB / 0.5536 GB, free: 7.215 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001148/0.3441, allocations: 0.6249 MB / 0.5542 GB, free: 6.75 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.93e-05/0.3442, allocations: 131.4 kB / 0.5544 GB, free: 6.594 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003263/0.3446, allocations: 308.3 kB / 0.5547 GB, free: 6.391 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.812e-05/0.3446, allocations: 39.19 kB / 0.5547 GB, free: 6.348 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001676/0.3448, allocations: 223.8 kB / 0.5549 GB, free: 6.145 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.192e-05/0.3448, allocations: 67.7 kB / 0.555 GB, free: 6.086 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.405e-05/0.3449, allocations: 52.06 kB / 0.555 GB, free: 6.047 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.3451, allocations: 346.8 kB / 0.5554 GB, free: 5.707 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.527e-05/0.3452, allocations: 45.58 kB / 0.5554 GB, free: 5.688 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001687/0.3453, allocations: 149.2 kB / 0.5556 GB, free: 5.531 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002935/0.3456, allocations: 231.4 kB / 0.5558 GB, free: 5.328 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.3456, allocations: 1.25 kB / 0.5558 GB, free: 5.328 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003785/0.346, allocations: 250.8 kB / 0.556 GB, free: 5.191 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.346, allocations: 6.906 kB / 0.556 GB, free: 5.191 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.346, allocations: 3.562 kB / 0.556 GB, free: 5.191 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.112e-05/0.346, allocations: 12.8 kB / 0.556 GB, free: 5.184 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003718/0.3464, allocations: 78.59 kB / 0.5561 GB, free: 5.168 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009686/0.3474, allocations: 1.268 MB / 0.5573 GB, free: 3.836 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001641/0.3475, allocations: 16.36 kB / 0.5574 GB, free: 3.824 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.116e-05/0.3476, allocations: 13.84 kB / 0.5574 GB, free: 3.82 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001838/0.3478, allocations: 177.4 kB / 0.5575 GB, free: 3.66 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.975e-05/0.3478, allocations: 34.8 kB / 0.5576 GB, free: 3.641 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003215/0.3482, allocations: 184.5 kB / 0.5578 GB, free: 3.527 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.7e-06/0.3482, allocations: 6.375 kB / 0.5578 GB, free: 3.523 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.3482, allocations: 2.219 kB / 0.5578 GB, free: 3.523 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.3482, allocations: 5.172 kB / 0.5578 GB, free: 3.52 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007974/0.349, allocations: 0.5166 MB / 0.5583 GB, free: 3.082 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.349, allocations: 1.094 kB / 0.5583 GB, free: 3.082 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002276/0.3492, allocations: 37.11 kB / 0.5583 GB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.3492, allocations: 2.188 kB / 0.5583 GB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.776e-05/0.3492, allocations: 6.188 kB / 0.5583 GB, free: 3.074 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.019e-06/0.3492, allocations: 5.109 kB / 0.5583 GB, free: 3.07 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.3492, allocations: 6.406 kB / 0.5583 GB, free: 3.066 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004776/0.3497, allocations: 491.1 kB / 0.5588 GB, free: 2.676 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.324e-05/0.3498, allocations: 33.55 kB / 0.5588 GB, free: 2.652 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.108e-05/0.3498, allocations: 6.344 kB / 0.5588 GB, free: 2.648 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002074/0.35, allocations: 6.156 kB / 0.5588 GB, free: 2.645 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.029e-05/0.35, allocations: 16.38 kB / 0.5589 GB, free: 2.633 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.132e-05/0.3501, allocations: 5.625 kB / 0.5589 GB, free: 2.633 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002262/0.3503, allocations: 225.5 kB / 0.5591 GB, free: 2.418 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3503, allocations: 0 / 0.5591 GB, free: 2.418 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004291/0.3507, allocations: 60 kB / 0.5591 GB, free: 2.359 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000792/0.3515, allocations: 1.02 MB / 0.5601 GB, free: 1.305 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003683/0.3519, allocations: 162.7 kB / 0.5603 GB, free: 1.148 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3519, allocations: 3.938 kB / 0.5603 GB, free: 1.145 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001101/0.352, allocations: 56.8 kB / 0.5603 GB, free: 1.09 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007265/0.3527, allocations: 110.8 kB / 0.5604 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004074/0.3568, allocations: 3.266 MB / 0.5636 GB, free: 13.55 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004556/0.3572, allocations: 0.7992 MB / 0.5644 GB, free: 12.72 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001865/0.3574, allocations: 62.92 kB / 0.5645 GB, free: 12.66 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000163/0.3576, allocations: 107.4 kB / 0.5646 GB, free: 12.55 MB / 414.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3576, allocations: 0 / 0.5646 GB, free: 12.55 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0375/0.3951, allocations: 7.034 MB / 0.5714 GB, free: 5.684 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.3, allocations: 8 kB / 0.5715 GB, free: 5.676 MB / 414.1 MB " [Timeout remaining time 649] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Machines.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv. Warning: Get data of variable Time from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv failed! Error: Could not read variable motor.v in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv. Warning: Get data of variable motor.v from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv failed! Error: Could not read variable motor.w_el in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv. Warning: Get data of variable motor.w_el from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv failed! Error: Could not read variable power.p in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv. Warning: Get data of variable power.p from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.196882174001075]