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.001328/0.001328, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001493/0.001493, allocations: 210 kB / 23.73 MB, free: 4.387 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.489/1.489, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.1893/0.1893, allocations: 38.56 MB / 352.5 MB, free: 12.32 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.002056/0.002056, allocations: 71.88 kB / 492.5 MB, free: 4.699 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3419/0.344, allocations: 62.47 MB / 0.542 GB, free: 248 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.007897/0.3519, allocations: 4.43 MB / 0.5463 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002736/0.3546, allocations: 1.392 MB / 0.5476 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002766/0.3549, allocations: 20.5 kB / 0.5477 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005256/0.3554, allocations: 110.1 kB / 0.5478 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008486/0.3563, allocations: 285.4 kB / 0.548 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003283/0.3566, allocations: 109.2 kB / 0.5481 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000892/0.3575, allocations: 0.5114 MB / 0.5486 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002628/0.3578, allocations: 94.69 kB / 0.5487 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003589/0.3581, allocations: 217.2 kB / 0.5489 GB, free: 10.92 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003416/0.3585, allocations: 206 kB / 0.5491 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.095e-05/0.3585, allocations: 25.69 kB / 0.5492 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.71e-05/0.3586, allocations: 26.94 kB / 0.5492 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001296/0.3587, allocations: 103.7 kB / 0.5493 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001738/0.3589, allocations: 141.4 kB / 0.5494 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005153/0.3594, allocations: 399.1 kB / 0.5498 GB, free: 10.37 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3594, allocations: 1.031 kB / 0.5498 GB, free: 10.37 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.3594, allocations: 0 / 0.5498 GB, free: 10.37 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.546e-06/0.3594, allocations: 0 / 0.5498 GB, free: 10.37 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.001147/0.3606, allocations: 0.595 MB / 0.5504 GB, free: 9.871 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.3606, allocations: 12.67 kB / 0.5504 GB, free: 9.867 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.634e-05/0.3607, allocations: 63.62 kB / 0.5505 GB, free: 9.805 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.391e-05/0.3607, allocations: 48.88 kB / 0.5505 GB, free: 9.777 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006979/0.3614, allocations: 340.4 kB / 0.5508 GB, free: 9.5 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.599e-05/0.3615, allocations: 23.88 kB / 0.5508 GB, free: 9.488 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.25e-05/0.3615, allocations: 26 kB / 0.5509 GB, free: 9.48 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005245/0.3621, allocations: 337.3 kB / 0.5512 GB, free: 9.227 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.001e-05/0.3621, allocations: 1.156 kB / 0.5512 GB, free: 9.227 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.079e-05/0.3621, allocations: 11 kB / 0.5512 GB, free: 9.219 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.3621, allocations: 6.625 kB / 0.5512 GB, free: 9.219 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003572/0.3625, allocations: 207 kB / 0.5514 GB, free: 9.113 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001824/0.3643, allocations: 1.395 MB / 0.5528 GB, free: 7.824 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005029/0.3648, allocations: 190.3 kB / 0.553 GB, free: 7.672 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001527/0.365, allocations: 77.27 kB / 0.553 GB, free: 7.609 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.967e-05/0.365, allocations: 7.453 kB / 0.553 GB, free: 7.605 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.844e-05/0.365, allocations: 38.75 kB / 0.5531 GB, free: 7.562 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.954e-06/0.365, allocations: 4 kB / 0.5531 GB, free: 7.559 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001264/0.3663, allocations: 0.6208 MB / 0.5537 GB, free: 7.098 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.056e-05/0.3664, allocations: 136.6 kB / 0.5538 GB, free: 6.938 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003752/0.3668, allocations: 316.9 kB / 0.5541 GB, free: 6.727 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.223e-05/0.3668, allocations: 30.77 kB / 0.5541 GB, free: 6.691 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001951/0.367, allocations: 216.8 kB / 0.5544 GB, free: 6.496 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.547e-05/0.3671, allocations: 71.3 kB / 0.5544 GB, free: 6.434 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.002e-05/0.3672, allocations: 52.53 kB / 0.5545 GB, free: 6.395 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.3673, allocations: 346.4 kB / 0.5548 GB, free: 6.055 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.75e-05/0.3674, allocations: 46.09 kB / 0.5548 GB, free: 6.035 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001884/0.3676, allocations: 152.2 kB / 0.555 GB, free: 5.879 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003109/0.3679, allocations: 230 kB / 0.5552 GB, free: 5.68 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.3679, allocations: 1.281 kB / 0.5552 GB, free: 5.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004132/0.3683, allocations: 258.5 kB / 0.5555 GB, free: 5.535 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.416e-05/0.3684, allocations: 6.469 kB / 0.5555 GB, free: 5.535 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/0.3684, allocations: 4.25 kB / 0.5555 GB, free: 5.535 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.164e-05/0.3684, allocations: 8.594 kB / 0.5555 GB, free: 5.531 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003728/0.3688, allocations: 86.33 kB / 0.5556 GB, free: 5.508 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00113/0.3699, allocations: 1.268 MB / 0.5568 GB, free: 4.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001627/0.3701, allocations: 7.906 kB / 0.5568 GB, free: 4.176 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.028e-05/0.3701, allocations: 10 kB / 0.5568 GB, free: 4.176 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.0002263/0.3703, allocations: 168.9 kB / 0.557 GB, free: 4.023 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.767e-05/0.3704, allocations: 34.39 kB / 0.557 GB, free: 4.004 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003353/0.3707, allocations: 189.2 kB / 0.5572 GB, free: 3.887 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.127e-06/0.3707, allocations: 2.625 kB / 0.5572 GB, free: 3.887 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.245e-06/0.3707, allocations: 6.781 kB / 0.5572 GB, free: 3.883 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.3707, allocations: 0 / 0.5572 GB, free: 3.883 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000874/0.3716, allocations: 0.494 MB / 0.5577 GB, free: 3.469 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.3716, allocations: 1.156 kB / 0.5577 GB, free: 3.469 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00022/0.3718, allocations: 44.89 kB / 0.5577 GB, free: 3.457 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.3718, allocations: 1.938 kB / 0.5577 GB, free: 3.457 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.762e-05/0.3719, allocations: 7.016 kB / 0.5577 GB, free: 3.453 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.12e-06/0.3719, allocations: 5.219 kB / 0.5577 GB, free: 3.449 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/0.3719, allocations: 9.016 kB / 0.5577 GB, free: 3.441 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006087/0.3725, allocations: 497.2 kB / 0.5582 GB, free: 2.953 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.936e-05/0.3725, allocations: 31.8 kB / 0.5582 GB, free: 2.922 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.877e-05/0.3726, allocations: 7.938 kB / 0.5583 GB, free: 2.914 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001991/0.3728, allocations: 4 kB / 0.5583 GB, free: 2.91 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.29e-05/0.3728, allocations: 19.91 kB / 0.5583 GB, free: 2.891 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.458e-05/0.3728, allocations: 8 kB / 0.5583 GB, free: 2.883 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002353/0.3731, allocations: 215.2 kB / 0.5585 GB, free: 2.676 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3731, allocations: 4 kB / 0.5585 GB, free: 2.672 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004291/0.3735, allocations: 60 kB / 0.5586 GB, free: 2.613 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.0008052/0.3743, allocations: 1.03 MB / 0.5596 GB, free: 1.555 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003664/0.3747, allocations: 155.7 kB / 0.5597 GB, free: 1.402 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3747, allocations: 0 / 0.5597 GB, free: 1.402 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001138/0.3748, allocations: 67.38 kB / 0.5598 GB, free: 1.34 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007363/0.3755, allocations: 104.2 kB / 0.5599 GB, free: 1.246 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004114/0.3796, allocations: 3.262 MB / 0.5631 GB, free: 13.8 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002221/0.3799, allocations: 197.4 kB / 0.5632 GB, free: 13.59 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001784/0.38, allocations: 50.92 kB / 0.5633 GB, free: 13.54 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001834/0.3802, allocations: 119.4 kB / 0.5634 GB, free: 13.42 MB / 414.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3802, allocations: 3.938 kB / 0.5634 GB, free: 13.42 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04116/0.4214, allocations: 7.582 MB / 0.5708 GB, free: 6.027 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.8, allocations: 11.94 kB / 0.5708 GB, free: 6.016 MB / 414.1 MB " [Timeout remaining time 648] (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.786631844006479]