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.00131/0.00131, allocations: 113.2 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.001383/0.001383, allocations: 210.5 kB / 23.74 MB, free: 4.66 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.443/1.443, allocations: 230.6 MB / 257.5 MB, free: 8.008 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.1871/0.1871, allocations: 38.53 MB / 352.4 MB, free: 12.62 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_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.002125/0.002125, allocations: 74.55 kB / 492.6 MB, free: 4.875 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3397/0.3418, allocations: 62.46 MB / 0.542 GB, free: 440 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.007425/0.3492, allocations: 5.57 MB / 0.5474 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006925/0.3561, allocations: 4.231 MB / 0.5516 GB, free: 8.73 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005659/0.3567, allocations: 27.84 kB / 0.5516 GB, free: 8.715 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01582/0.3725, allocations: 5.483 MB / 0.557 GB, free: 5.188 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001256/0.3738, allocations: 342.4 kB / 0.5573 GB, free: 4.852 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009381/0.3747, allocations: 251.5 kB / 0.5575 GB, free: 4.605 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002969/0.3777, allocations: 1.657 MB / 0.5591 GB, free: 2.945 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007205/0.3784, allocations: 332.3 kB / 0.5595 GB, free: 2.613 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007348/0.3792, allocations: 382.6 kB / 0.5598 GB, free: 2.238 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008749/0.38, allocations: 490.2 kB / 0.5603 GB, free: 1.758 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001379/0.3802, allocations: 44 kB / 0.5603 GB, free: 1.715 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003899/0.3806, allocations: 135.8 kB / 0.5605 GB, free: 1.582 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003459/0.3809, allocations: 279.2 kB / 0.5607 GB, free: 1.309 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003834/0.3813, allocations: 322.3 kB / 0.561 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001044/0.3823, allocations: 0.747 MB / 0.5618 GB, free: 248 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.3823, allocations: 0 / 0.5618 GB, free: 248 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.624e-06/0.3823, allocations: 4 kB / 0.5618 GB, free: 244 kB / 398.1 MB Notification: Performance of Transformations before backend: time 9.979e-06/0.3823, allocations: 0 / 0.5618 GB, free: 244 kB / 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.001814/0.3842, allocations: 0.8569 MB / 0.5626 GB, free: 15.35 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.3842, allocations: 11.98 kB / 0.5626 GB, free: 15.34 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001045/0.3843, allocations: 90.7 kB / 0.5627 GB, free: 15.24 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004323/0.3847, allocations: 96.47 kB / 0.5628 GB, free: 15.15 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001099/0.3858, allocations: 0.4924 MB / 0.5633 GB, free: 14.63 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.52e-05/0.3859, allocations: 36.94 kB / 0.5633 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.949e-05/0.386, allocations: 55.97 kB / 0.5634 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001059/0.387, allocations: 0.6375 MB / 0.564 GB, free: 13.86 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.44e-05/0.3871, allocations: 8 kB / 0.564 GB, free: 13.85 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.471e-05/0.3871, allocations: 16 kB / 0.564 GB, free: 13.84 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001445/0.3872, allocations: 52.95 kB / 0.5641 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000887/0.3881, allocations: 491.6 kB / 0.5645 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003967/0.3921, allocations: 2.451 MB / 0.5669 GB, free: 10.73 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006303/0.3927, allocations: 303.5 kB / 0.5672 GB, free: 10.4 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002797/0.393, allocations: 162.6 kB / 0.5674 GB, free: 10.23 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.767e-05/0.3931, allocations: 4 kB / 0.5674 GB, free: 10.23 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.078e-05/0.3931, allocations: 46.48 kB / 0.5674 GB, free: 10.18 MB / 414.1 MB Notification: Performance of pre-optimization done (n=32): time 2.254e-06/0.3931, allocations: 0 / 0.5674 GB, free: 10.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.002607/0.3957, allocations: 1.274 MB / 0.5687 GB, free: 8.859 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.492e-05/0.3958, allocations: 110.8 kB / 0.5688 GB, free: 8.727 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000521/0.3963, allocations: 425.9 kB / 0.5692 GB, free: 8.305 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.724e-05/0.3964, allocations: 29.7 kB / 0.5692 GB, free: 8.27 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002751/0.3966, allocations: 312.2 kB / 0.5695 GB, free: 7.961 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001212/0.3968, allocations: 126.9 kB / 0.5696 GB, free: 7.836 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001529/0.3969, allocations: 94.17 kB / 0.5697 GB, free: 7.738 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001948/0.3971, allocations: 358.7 kB / 0.57 GB, free: 7.379 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003177/0.3974, allocations: 164.9 kB / 0.5702 GB, free: 7.219 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004158/0.3978, allocations: 305.1 kB / 0.5705 GB, free: 6.859 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007308/0.3986, allocations: 491.7 kB / 0.571 GB, free: 6.32 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.3986, allocations: 4 kB / 0.571 GB, free: 6.316 MB / 414.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001468/0.4, allocations: 0.7167 MB / 0.5717 GB, free: 5.586 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.382e-05/0.4001, allocations: 4 kB / 0.5717 GB, free: 5.582 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.909e-05/0.4001, allocations: 4 kB / 0.5717 GB, free: 5.578 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006805/0.4008, allocations: 209.5 kB / 0.5719 GB, free: 5.367 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003447/0.4011, allocations: 68.11 kB / 0.5719 GB, free: 5.301 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005362/0.4065, allocations: 4.036 MB / 0.5759 GB, free: 1.043 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003429/0.4068, allocations: 19.98 kB / 0.5759 GB, free: 1.023 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.227e-05/0.4069, allocations: 20 kB / 0.5759 GB, free: 1.004 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.0004201/0.4073, allocations: 233.7 kB / 0.5761 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001574/0.4074, allocations: 47.67 kB / 0.5762 GB, free: 0.7188 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009997/0.4084, allocations: 495 kB / 0.5767 GB, free: 232 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.603e-06/0.4084, allocations: 11.97 kB / 0.5767 GB, free: 220 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.4084, allocations: 0 / 0.5767 GB, free: 220 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.123e-05/0.4085, allocations: 7.984 kB / 0.5767 GB, free: 212 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001944/0.4104, allocations: 1.02 MB / 0.5777 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.4104, allocations: 0 / 0.5777 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000424/0.4108, allocations: 71.89 kB / 0.5777 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001635/0.411, allocations: 53.67 kB / 0.5778 GB, free: 15 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.806e-05/0.411, allocations: 11.98 kB / 0.5778 GB, free: 14.98 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002382/0.4134, allocations: 2.64 MB / 0.5804 GB, free: 12.11 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.4134, allocations: 0 / 0.5804 GB, free: 12.11 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00122/0.4146, allocations: 0.8064 MB / 0.5812 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002061/0.4148, allocations: 75.64 kB / 0.5812 GB, free: 11.2 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.279e-05/0.4149, allocations: 8 kB / 0.5813 GB, free: 11.19 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002584/0.4152, allocations: 11.98 kB / 0.5813 GB, free: 11.18 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.959e-05/0.4152, allocations: 27.89 kB / 0.5813 GB, free: 11.15 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.259e-05/0.4153, allocations: 20 kB / 0.5813 GB, free: 11.13 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003689/0.4156, allocations: 291.1 kB / 0.5816 GB, free: 10.85 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4156, allocations: 0 / 0.5816 GB, free: 10.85 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0006169/0.4163, allocations: 128 kB / 0.5817 GB, free: 10.72 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.001566/0.4178, allocations: 1.363 MB / 0.583 GB, free: 9.316 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001449/0.4193, allocations: 0.7123 MB / 0.5837 GB, free: 8.578 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/0.4193, allocations: 4.375 kB / 0.5837 GB, free: 8.574 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005946/0.4199, allocations: 405.1 kB / 0.5841 GB, free: 8.152 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007863/0.4207, allocations: 121 kB / 0.5842 GB, free: 8.035 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009343/0.43, allocations: 5.397 MB / 0.5895 GB, free: 2.41 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008129/0.4308, allocations: 0.9405 MB / 0.5904 GB, free: 1.441 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003825/0.4312, allocations: 108.4 kB / 0.5905 GB, free: 1.332 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003318/0.4315, allocations: 199.4 kB / 0.5907 GB, free: 1.137 MB / 430.1 MB Notification: Performance of SimCode: time 1.232e-06/0.4315, allocations: 0 / 0.5907 GB, free: 1.137 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05288/0.4844, allocations: 12.64 MB / 0.6031 GB, free: 4.66 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.37/13.86, allocations: 3.859 kB / 0.6031 GB, free: 4.656 MB / 446.1 MB " [Timeout remaining time 646] (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: 16.77887065615505]