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.001387/0.001387, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001571/0.001571, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.514/1.514, allocations: 230.6 MB / 258.3 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.1902/0.1902, allocations: 38.52 MB / 353.2 MB, free: 12.52 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_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.002035/0.002035, allocations: 63.89 kB / 493.3 MB, free: 4.848 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3699/0.3719, allocations: 62.47 MB / 0.5428 GB, free: 440 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.006886/0.3788, allocations: 4.71 MB / 0.5474 GB, free: 12.76 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002629/0.3814, allocations: 1.531 MB / 0.5489 GB, free: 11.53 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000278/0.3817, allocations: 20.62 kB / 0.5489 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004919/0.3822, allocations: 117.3 kB / 0.549 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007209/0.3829, allocations: 281.2 kB / 0.5493 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003035/0.3832, allocations: 113.3 kB / 0.5494 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008093/0.384, allocations: 0.5085 MB / 0.5499 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002379/0.3843, allocations: 107 kB / 0.55 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003567/0.3846, allocations: 208.2 kB / 0.5502 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003853/0.385, allocations: 218.1 kB / 0.5504 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.717e-05/0.3851, allocations: 29.66 kB / 0.5504 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.412e-05/0.3851, allocations: 30.31 kB / 0.5504 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001445/0.3853, allocations: 108.4 kB / 0.5505 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002245/0.3855, allocations: 177.4 kB / 0.5507 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005935/0.3861, allocations: 387.6 kB / 0.5511 GB, free: 10.04 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.88e-06/0.3861, allocations: 0 / 0.5511 GB, free: 10.04 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.3861, allocations: 1.125 kB / 0.5511 GB, free: 10.04 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.206e-06/0.3861, allocations: 0 / 0.5511 GB, free: 10.04 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.001216/0.3873, allocations: 0.5957 MB / 0.5517 GB, free: 9.543 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.3874, allocations: 14.73 kB / 0.5517 GB, free: 9.539 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.359e-05/0.3874, allocations: 13.62 kB / 0.5517 GB, free: 9.531 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.734e-05/0.3875, allocations: 64.59 kB / 0.5517 GB, free: 9.469 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.13e-05/0.3876, allocations: 43.97 kB / 0.5518 GB, free: 9.445 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007183/0.3883, allocations: 336.2 kB / 0.5521 GB, free: 9.172 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.135e-05/0.3883, allocations: 27.22 kB / 0.5521 GB, free: 9.156 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.242e-05/0.3884, allocations: 30.69 kB / 0.5522 GB, free: 9.145 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005976/0.389, allocations: 330.2 kB / 0.5525 GB, free: 8.895 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.112e-05/0.389, allocations: 5.188 kB / 0.5525 GB, free: 8.891 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.387e-05/0.389, allocations: 11.38 kB / 0.5525 GB, free: 8.883 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.133e-05/0.389, allocations: 7.25 kB / 0.5525 GB, free: 8.883 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003941/0.3894, allocations: 207 kB / 0.5527 GB, free: 8.777 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001997/0.3914, allocations: 1.446 MB / 0.5541 GB, free: 7.438 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005042/0.3919, allocations: 193.8 kB / 0.5543 GB, free: 7.281 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001435/0.3921, allocations: 82.62 kB / 0.5544 GB, free: 7.215 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.028e-05/0.3921, allocations: 1.219 kB / 0.5544 GB, free: 7.215 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.642e-05/0.3921, allocations: 37 kB / 0.5544 GB, free: 7.172 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.803e-06/0.3921, allocations: 1.062 kB / 0.5544 GB, free: 7.172 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001426/0.3936, allocations: 0.6323 MB / 0.555 GB, free: 6.699 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001126/0.3937, allocations: 131.4 kB / 0.5552 GB, free: 6.543 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004336/0.3941, allocations: 312.6 kB / 0.5555 GB, free: 6.336 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.207e-05/0.3941, allocations: 30.86 kB / 0.5555 GB, free: 6.301 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002094/0.3944, allocations: 217 kB / 0.5557 GB, free: 6.105 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.783e-05/0.3944, allocations: 63.19 kB / 0.5558 GB, free: 6.051 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.988e-05/0.3945, allocations: 52.28 kB / 0.5558 GB, free: 6.012 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001909/0.3947, allocations: 350.5 kB / 0.5561 GB, free: 5.668 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001028/0.3948, allocations: 45.8 kB / 0.5562 GB, free: 5.648 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001853/0.395, allocations: 149.7 kB / 0.5563 GB, free: 5.492 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003375/0.3953, allocations: 230.2 kB / 0.5565 GB, free: 5.289 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.3953, allocations: 5.062 kB / 0.5565 GB, free: 5.285 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004519/0.3958, allocations: 246.9 kB / 0.5568 GB, free: 5.152 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.3958, allocations: 6.844 kB / 0.5568 GB, free: 5.152 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.493e-05/0.3958, allocations: 11.3 kB / 0.5568 GB, free: 5.145 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/0.3958, allocations: 4.625 kB / 0.5568 GB, free: 5.145 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004211/0.3963, allocations: 87.28 kB / 0.5569 GB, free: 5.121 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001228/0.3975, allocations: 1.268 MB / 0.5581 GB, free: 3.789 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002663/0.3978, allocations: 16.3 kB / 0.5581 GB, free: 3.777 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.281e-05/0.3978, allocations: 9.781 kB / 0.5581 GB, free: 3.777 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.0003197/0.3981, allocations: 171.9 kB / 0.5583 GB, free: 3.621 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001432/0.3983, allocations: 31.12 kB / 0.5583 GB, free: 3.605 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004933/0.3987, allocations: 190.1 kB / 0.5585 GB, free: 3.488 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.3988, allocations: 2.719 kB / 0.5585 GB, free: 3.488 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.3988, allocations: 1.031 kB / 0.5585 GB, free: 3.488 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.3e-05/0.3988, allocations: 9.062 kB / 0.5585 GB, free: 3.48 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000968/0.3997, allocations: 0.5209 MB / 0.559 GB, free: 3.039 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.3997, allocations: 0.9375 kB / 0.559 GB, free: 3.039 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002281/0.4, allocations: 41.45 kB / 0.5591 GB, free: 3.031 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.4, allocations: 1.25 kB / 0.5591 GB, free: 3.031 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.159e-05/0.4, allocations: 14.08 kB / 0.5591 GB, free: 3.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.4, allocations: 2.469 kB / 0.5591 GB, free: 3.02 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.4, allocations: 5.344 kB / 0.5591 GB, free: 3.016 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005169/0.4005, allocations: 483.7 kB / 0.5596 GB, free: 2.633 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.834e-05/0.4006, allocations: 37.08 kB / 0.5596 GB, free: 2.605 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.918e-05/0.4006, allocations: 8 kB / 0.5596 GB, free: 2.598 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000193/0.4008, allocations: 3.938 kB / 0.5596 GB, free: 2.594 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.741e-05/0.4009, allocations: 23.91 kB / 0.5596 GB, free: 2.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.226e-05/0.4009, allocations: 4 kB / 0.5596 GB, free: 2.566 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002483/0.4011, allocations: 223.2 kB / 0.5599 GB, free: 2.348 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4011, allocations: 0 / 0.5599 GB, free: 2.348 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004833/0.4016, allocations: 56 kB / 0.5599 GB, free: 2.293 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.0008968/0.4025, allocations: 1.016 MB / 0.5609 GB, free: 1.242 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004282/0.4029, allocations: 166.9 kB / 0.5611 GB, free: 1.082 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4029, allocations: 0 / 0.5611 GB, free: 1.082 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001189/0.403, allocations: 63.92 kB / 0.5611 GB, free: 1.02 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007625/0.4038, allocations: 104.3 kB / 0.5612 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004665/0.4085, allocations: 3.27 MB / 0.5644 GB, free: 13.48 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004929/0.409, allocations: 0.7992 MB / 0.5652 GB, free: 12.66 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002195/0.4092, allocations: 54.92 kB / 0.5652 GB, free: 12.6 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002098/0.4094, allocations: 111.4 kB / 0.5654 GB, free: 12.49 MB / 414.1 MB Notification: Performance of SimCode: time 1.633e-06/0.4094, allocations: 7.938 kB / 0.5654 GB, free: 12.48 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03449/0.4439, allocations: 7.055 MB / 0.5723 GB, free: 5.598 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/11.94, allocations: 6.562 kB / 0.5723 GB, free: 5.594 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.121434658998623]