Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.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.001363/0.001363, allocations: 107.2 kB / 20.44 MB, free: 1.207 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.001464/0.001464, allocations: 209.6 kB / 23.73 MB, free: 4.41 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.495/1.495, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.188/0.188, allocations: 38.55 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.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceInertial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceInertial",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.00222/0.00222, allocations: 63.89 kB / 492.5 MB, free: 4.723 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3548/0.3571, allocations: 62.47 MB / 0.5419 GB, free: 116 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.006319/0.3634, allocations: 4.329 MB / 0.5461 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002629/0.366, allocations: 1.379 MB / 0.5475 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001872/0.3662, allocations: 21.12 kB / 0.5475 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001105/0.3673, allocations: 371.2 kB / 0.5479 GB, free: 11.44 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006024/0.3679, allocations: 221.5 kB / 0.5481 GB, free: 11.26 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008132/0.3687, allocations: 254.6 kB / 0.5483 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007634/0.3695, allocations: 0.5345 MB / 0.5488 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004656/0.3699, allocations: 222.5 kB / 0.5491 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005684/0.3705, allocations: 261.6 kB / 0.5493 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005878/0.3711, allocations: 304 kB / 0.5496 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.997e-05/0.3712, allocations: 31.66 kB / 0.5496 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004699/0.3716, allocations: 148.3 kB / 0.5498 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003199/0.372, allocations: 229.3 kB / 0.55 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003261/0.3723, allocations: 196.5 kB / 0.5502 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009372/0.3732, allocations: 0.5758 MB / 0.5507 GB, free: 9.637 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.3732, allocations: 5.188 kB / 0.5507 GB, free: 9.633 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3732, allocations: 0 / 0.5507 GB, free: 9.633 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.046e-05/0.3732, allocations: 0 / 0.5507 GB, free: 9.633 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: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001472/0.3747, allocations: 0.6702 MB / 0.5514 GB, free: 9.086 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.3748, allocations: 12.7 kB / 0.5514 GB, free: 9.082 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001181/0.3749, allocations: 87.14 kB / 0.5515 GB, free: 9.004 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007512/0.3756, allocations: 127.7 kB / 0.5516 GB, free: 8.941 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008337/0.3765, allocations: 349.3 kB / 0.5519 GB, free: 8.664 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.532e-05/0.3765, allocations: 29.91 kB / 0.552 GB, free: 8.652 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001375/0.3766, allocations: 53.05 kB / 0.552 GB, free: 8.629 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001038/0.3777, allocations: 0.6207 MB / 0.5526 GB, free: 8.18 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.211e-05/0.3777, allocations: 1.188 kB / 0.5526 GB, free: 8.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.293e-05/0.3778, allocations: 20.83 kB / 0.5527 GB, free: 8.164 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001227/0.3779, allocations: 33.27 kB / 0.5527 GB, free: 8.156 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008227/0.3787, allocations: 477.3 kB / 0.5531 GB, free: 7.934 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00364/0.3823, allocations: 2.739 MB / 0.5558 GB, free: 5.543 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003989/0.3827, allocations: 209.7 kB / 0.556 GB, free: 5.418 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002301/0.383, allocations: 137.6 kB / 0.5561 GB, free: 5.277 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.679e-05/0.383, allocations: 11.94 kB / 0.5562 GB, free: 5.266 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.687e-05/0.383, allocations: 30.56 kB / 0.5562 GB, free: 5.227 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 2.885e-06/0.383, allocations: 8 kB / 0.5562 GB, free: 5.219 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.001721/0.3848, allocations: 0.902 MB / 0.5571 GB, free: 4.281 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.66e-05/0.3848, allocations: 89.03 kB / 0.5572 GB, free: 4.176 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003713/0.3852, allocations: 336.3 kB / 0.5575 GB, free: 3.84 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.114e-05/0.3852, allocations: 33.7 kB / 0.5575 GB, free: 3.801 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002093/0.3854, allocations: 284 kB / 0.5578 GB, free: 3.52 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.951e-05/0.3855, allocations: 103.2 kB / 0.5579 GB, free: 3.418 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001435/0.3857, allocations: 98.14 kB / 0.558 GB, free: 3.316 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001812/0.3859, allocations: 346.9 kB / 0.5583 GB, free: 2.969 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002472/0.3861, allocations: 144.9 kB / 0.5584 GB, free: 2.824 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004092/0.3865, allocations: 346.6 kB / 0.5588 GB, free: 2.398 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007043/0.3872, allocations: 0.513 MB / 0.5593 GB, free: 1.793 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.3872, allocations: 4 kB / 0.5593 GB, free: 1.789 MB / 398.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0008537/0.3881, allocations: 0.5289 MB / 0.5598 GB, free: 1.254 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.3881, allocations: 11.25 kB / 0.5598 GB, free: 1.246 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/0.3881, allocations: 12 kB / 0.5598 GB, free: 1.234 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.403e-05/0.3881, allocations: 8 kB / 0.5598 GB, free: 1.227 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004515/0.3886, allocations: 119.8 kB / 0.5599 GB, free: 1.109 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.048e-05/0.3886, allocations: 15.92 kB / 0.56 GB, free: 1.094 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002478/0.3889, allocations: 23.98 kB / 0.56 GB, free: 1.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.126e-05/0.3889, allocations: 24 kB / 0.56 GB, free: 1.047 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (58): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002598/0.3892, allocations: 217.5 kB / 0.5602 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.887e-05/0.3892, allocations: 35.77 kB / 0.5602 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006959/0.3899, allocations: 366.2 kB / 0.5606 GB, free: 432 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.3899, allocations: 4 kB / 0.5606 GB, free: 428 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.3899, allocations: 0 / 0.5606 GB, free: 428 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.3899, allocations: 0 / 0.5606 GB, free: 428 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001575/0.3915, allocations: 0.8321 MB / 0.5614 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.3915, allocations: 7.938 kB / 0.5614 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003428/0.3919, allocations: 55.97 kB / 0.5615 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.416e-06/0.3919, allocations: 4 kB / 0.5615 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.148e-05/0.3919, allocations: 27.89 kB / 0.5615 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.674e-06/0.3919, allocations: 7.938 kB / 0.5615 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/0.3919, allocations: 4 kB / 0.5615 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008635/0.3928, allocations: 0.5781 MB / 0.5621 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.014e-05/0.3929, allocations: 35.8 kB / 0.5621 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.679e-05/0.3929, allocations: 11.94 kB / 0.5621 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002167/0.3931, allocations: 11.98 kB / 0.5621 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.036e-05/0.3932, allocations: 19.91 kB / 0.5622 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.578e-05/0.3932, allocations: 12 kB / 0.5622 GB, free: 14.72 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002443/0.3934, allocations: 223 kB / 0.5624 GB, free: 14.5 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3934, allocations: 4 kB / 0.5624 GB, free: 14.5 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000501/0.3939, allocations: 92 kB / 0.5625 GB, free: 14.41 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * 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 (31): * Single equations (assignments): 30 * 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.001138/0.3951, allocations: 1.134 MB / 0.5636 GB, free: 13.23 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006071/0.3957, allocations: 345.7 kB / 0.5639 GB, free: 12.9 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/0.3957, allocations: 4 kB / 0.5639 GB, free: 12.89 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002318/0.3959, allocations: 136.7 kB / 0.564 GB, free: 12.76 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006238/0.3966, allocations: 70.86 kB / 0.5641 GB, free: 12.7 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005229/0.4018, allocations: 3.997 MB / 0.568 GB, free: 8.414 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002983/0.4021, allocations: 257.7 kB / 0.5683 GB, free: 8.141 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00035/0.4024, allocations: 131.1 kB / 0.5684 GB, free: 8.012 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000224/0.4027, allocations: 143.4 kB / 0.5685 GB, free: 7.875 MB / 414.1 MB Notification: Performance of SimCode: time 7.41e-07/0.4027, allocations: 0 / 0.5685 GB, free: 7.875 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03778/0.4404, allocations: 7.781 MB / 0.5761 GB, free: 280 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.75, allocations: 18.41 kB / 0.5761 GB, free: 268 kB / 414.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceInertial_fmu --startTime=0 --stopTime=0.1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceInertial.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.ReferenceInertial.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.685191859025508]