Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.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.001419/0.001419, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001575/0.001575, allocations: 211.9 kB / 24.51 MB, free: 3.941 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.47/1.47, allocations: 230.6 MB / 258.3 MB, free: 7.777 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.1926/0.1926, allocations: 38.55 MB / 353.2 MB, free: 12.31 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.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Machines",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Machines",fmuType="cs",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.001942/0.001942, allocations: 59.89 kB / 493.3 MB, free: 4.691 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3377/0.3397, allocations: 62.46 MB / 0.5427 GB, free: 256 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.0073/0.347, allocations: 5.198 MB / 0.5478 GB, free: 12.29 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00638/0.3534, allocations: 3.815 MB / 0.5515 GB, free: 9.387 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000394/0.3538, allocations: 27.16 kB / 0.5515 GB, free: 9.371 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01146/0.3652, allocations: 5.433 MB / 0.5568 GB, free: 5.758 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001294/0.3665, allocations: 342.4 kB / 0.5572 GB, free: 5.422 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008457/0.3674, allocations: 259.5 kB / 0.5574 GB, free: 5.168 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002729/0.3701, allocations: 1.637 MB / 0.559 GB, free: 3.527 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007205/0.3708, allocations: 336.3 kB / 0.5593 GB, free: 3.191 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007106/0.3715, allocations: 394.5 kB / 0.5597 GB, free: 2.805 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007447/0.3723, allocations: 482.2 kB / 0.5602 GB, free: 2.332 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.303e-05/0.3724, allocations: 48 kB / 0.5602 GB, free: 2.285 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003412/0.3727, allocations: 123.8 kB / 0.5603 GB, free: 2.164 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003084/0.373, allocations: 287.2 kB / 0.5606 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003453/0.3733, allocations: 258.8 kB / 0.5608 GB, free: 1.629 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009812/0.3743, allocations: 0.7587 MB / 0.5616 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.3743, allocations: 4 kB / 0.5616 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3743, allocations: 0 / 0.5616 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.468e-06/0.3743, allocations: 0 / 0.5616 GB, free: 0.8633 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: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.001801/0.3761, allocations: 0.8473 MB / 0.5624 GB, free: 15.98 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.3762, allocations: 15.98 kB / 0.5624 GB, free: 15.97 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.513e-05/0.3762, allocations: 13.19 kB / 0.5624 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000106/0.3763, allocations: 98.61 kB / 0.5625 GB, free: 15.86 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004495/0.3768, allocations: 92.47 kB / 0.5626 GB, free: 15.77 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001068/0.3778, allocations: 0.4922 MB / 0.5631 GB, free: 15.25 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.472e-05/0.3779, allocations: 36.98 kB / 0.5631 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000103/0.378, allocations: 51.98 kB / 0.5632 GB, free: 15.16 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001112/0.3791, allocations: 0.6414 MB / 0.5638 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.14e-05/0.3791, allocations: 12 kB / 0.5638 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.924e-05/0.3792, allocations: 16 kB / 0.5638 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001483/0.3793, allocations: 52.95 kB / 0.5639 GB, free: 14.4 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008096/0.3801, allocations: 487.6 kB / 0.5644 GB, free: 13.92 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003496/0.3836, allocations: 2.357 MB / 0.5667 GB, free: 11.44 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005536/0.3842, allocations: 290.7 kB / 0.5669 GB, free: 11.13 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002767/0.3845, allocations: 166.6 kB / 0.5671 GB, free: 10.96 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.25e-05/0.3845, allocations: 8 kB / 0.5671 GB, free: 10.95 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.748e-05/0.3845, allocations: 34.56 kB / 0.5671 GB, free: 10.91 MB / 414.1 MB Notification: Performance of pre-optimization done (n=32): time 2.134e-06/0.3845, allocations: 0 / 0.5671 GB, free: 10.91 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.002653/0.3872, allocations: 1.286 MB / 0.5684 GB, free: 9.578 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.297e-05/0.3873, allocations: 106.8 kB / 0.5685 GB, free: 9.449 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000501/0.3878, allocations: 417.9 kB / 0.5689 GB, free: 9.031 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.993e-05/0.3878, allocations: 33.7 kB / 0.5689 GB, free: 8.992 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002575/0.3881, allocations: 320.2 kB / 0.5692 GB, free: 8.676 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/0.3882, allocations: 122.9 kB / 0.5694 GB, free: 8.555 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000145/0.3883, allocations: 90.12 kB / 0.5694 GB, free: 8.461 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.3885, allocations: 366.7 kB / 0.5698 GB, free: 8.094 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002803/0.3888, allocations: 160.9 kB / 0.5699 GB, free: 7.938 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003801/0.3892, allocations: 305.2 kB / 0.5702 GB, free: 7.578 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006937/0.3899, allocations: 487.7 kB / 0.5707 GB, free: 7.043 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.3899, allocations: 4 kB / 0.5707 GB, free: 7.039 MB / 414.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001418/0.3913, allocations: 0.7124 MB / 0.5714 GB, free: 6.312 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/0.3913, allocations: 11.38 kB / 0.5714 GB, free: 6.305 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.3913, allocations: 8 kB / 0.5714 GB, free: 6.297 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006919/0.392, allocations: 201.5 kB / 0.5716 GB, free: 6.094 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003418/0.3924, allocations: 75.89 kB / 0.5717 GB, free: 6.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005038/0.3974, allocations: 4.007 MB / 0.5756 GB, free: 1.789 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003183/0.3977, allocations: 19.98 kB / 0.5756 GB, free: 1.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.27e-05/0.3978, allocations: 20 kB / 0.5756 GB, free: 1.75 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0003492/0.3981, allocations: 225.7 kB / 0.5758 GB, free: 1.52 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.3982, allocations: 47.67 kB / 0.5759 GB, free: 1.473 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000925/0.3991, allocations: 495 kB / 0.5764 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.3991, allocations: 8.031 kB / 0.5764 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.3991, allocations: 0 / 0.5764 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.3992, allocations: 7.938 kB / 0.5764 GB, free: 0.9609 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001685/0.4008, allocations: 0.9772 MB / 0.5773 GB, free: 15.92 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.732e-06/0.4008, allocations: 4 kB / 0.5773 GB, free: 15.91 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004574/0.4013, allocations: 75.95 kB / 0.5774 GB, free: 15.84 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001684/0.4015, allocations: 53.67 kB / 0.5775 GB, free: 15.78 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.273e-05/0.4015, allocations: 12 kB / 0.5775 GB, free: 15.77 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002194/0.4037, allocations: 2.636 MB / 0.58 GB, free: 12.9 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.4037, allocations: 3.938 kB / 0.5801 GB, free: 12.9 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001196/0.4049, allocations: 0.8144 MB / 0.5808 GB, free: 12.05 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001869/0.4051, allocations: 67.69 kB / 0.5809 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.278e-05/0.4051, allocations: 8 kB / 0.5809 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002764/0.4054, allocations: 11.98 kB / 0.5809 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.676e-05/0.4055, allocations: 31.89 kB / 0.581 GB, free: 11.93 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.062e-05/0.4055, allocations: 12 kB / 0.581 GB, free: 11.92 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003954/0.4059, allocations: 291.1 kB / 0.5812 GB, free: 11.64 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4059, allocations: 0 / 0.5812 GB, free: 11.64 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007055/0.4066, allocations: 136 kB / 0.5814 GB, free: 11.51 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asynchron.i[3],asynchron.phi_el,asynchron.psi_s[1],asynchron.psi_s[2],asynchron.psi_rd[1],asynchron.psi_rq[1],rotor.w) * 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 (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,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.001542/0.4082, allocations: 1.357 MB / 0.5827 GB, free: 10.11 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001367/0.4095, allocations: 0.7118 MB / 0.5834 GB, free: 9.371 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.4095, allocations: 0 / 0.5834 GB, free: 9.371 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005649/0.4101, allocations: 414 kB / 0.5838 GB, free: 8.941 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007625/0.4109, allocations: 118 kB / 0.5839 GB, free: 8.828 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007823/0.4187, allocations: 5.412 MB / 0.5892 GB, free: 3.191 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004159/0.4191, allocations: 348.7 kB / 0.5895 GB, free: 2.828 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003131/0.4194, allocations: 100.4 kB / 0.5896 GB, free: 2.727 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003524/0.4198, allocations: 203.4 kB / 0.5898 GB, free: 2.527 MB / 430.1 MB Notification: Performance of SimCode: time 9.82e-07/0.4198, allocations: 0 / 0.5898 GB, free: 2.527 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04646/0.4662, allocations: 12.68 MB / 0.6022 GB, free: 6.082 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.06/14.53, allocations: 12 kB / 0.6022 GB, free: 6.07 MB / 446.1 MB " [Timeout remaining time 645] (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Machines_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Machines.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Machines.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.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: 17.67171466909349]