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.001684/0.001684, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002039/0.002039, allocations: 213.9 kB / 23.73 MB, free: 4.16 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.511/1.511, allocations: 230.6 MB / 257.5 MB, free: 7.816 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.55 MB / 352.5 MB, free: 12.34 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.002095/0.002095, allocations: 67.89 kB / 492.5 MB, free: 4.719 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.367/0.3691, allocations: 62.46 MB / 0.5419 GB, free: 280 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.007053/0.3761, allocations: 4.449 MB / 0.5463 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002812/0.3789, allocations: 1.388 MB / 0.5476 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004135/0.3793, allocations: 20.88 kB / 0.5477 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005792/0.3799, allocations: 113 kB / 0.5478 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009739/0.3809, allocations: 277.9 kB / 0.548 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004137/0.3813, allocations: 113.5 kB / 0.5481 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009865/0.3823, allocations: 0.5069 MB / 0.5486 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002803/0.3826, allocations: 103.4 kB / 0.5487 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004313/0.383, allocations: 216.5 kB / 0.5489 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003741/0.3834, allocations: 202 kB / 0.5491 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.712e-05/0.3834, allocations: 25.91 kB / 0.5492 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.456e-05/0.3835, allocations: 26.19 kB / 0.5492 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001582/0.3837, allocations: 101.1 kB / 0.5493 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002108/0.3839, allocations: 161.3 kB / 0.5494 GB, free: 10.65 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007157/0.3846, allocations: 384.1 kB / 0.5498 GB, free: 10.39 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.3846, allocations: 0 / 0.5498 GB, free: 10.39 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.3846, allocations: 0 / 0.5498 GB, free: 10.39 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.799e-06/0.3846, allocations: 0 / 0.5498 GB, free: 10.39 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.001326/0.3859, allocations: 0.6022 MB / 0.5504 GB, free: 9.883 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.386, allocations: 13.08 kB / 0.5504 GB, free: 9.879 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001162/0.3861, allocations: 59.55 kB / 0.5505 GB, free: 9.82 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.492e-05/0.3862, allocations: 45.34 kB / 0.5505 GB, free: 9.797 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007142/0.3869, allocations: 344.4 kB / 0.5508 GB, free: 9.516 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.468e-05/0.3869, allocations: 18.97 kB / 0.5508 GB, free: 9.508 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.74e-05/0.387, allocations: 29.62 kB / 0.5509 GB, free: 9.496 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006115/0.3876, allocations: 338 kB / 0.5512 GB, free: 9.242 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.084e-05/0.3876, allocations: 1.375 kB / 0.5512 GB, free: 9.242 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.224e-05/0.3876, allocations: 10.81 kB / 0.5512 GB, free: 9.234 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.186e-05/0.3877, allocations: 6.562 kB / 0.5512 GB, free: 9.234 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004178/0.3881, allocations: 202.8 kB / 0.5514 GB, free: 9.133 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002141/0.3902, allocations: 1.399 MB / 0.5528 GB, free: 7.84 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004725/0.3907, allocations: 190.7 kB / 0.553 GB, free: 7.688 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001242/0.3908, allocations: 73.34 kB / 0.553 GB, free: 7.629 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.59e-05/0.3908, allocations: 3.312 kB / 0.553 GB, free: 7.629 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.874e-05/0.3909, allocations: 37.62 kB / 0.5531 GB, free: 7.586 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 2.024e-06/0.3909, allocations: 0 / 0.5531 GB, free: 7.586 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001223/0.3921, allocations: 0.6347 MB / 0.5537 GB, free: 7.113 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001096/0.3922, allocations: 132 kB / 0.5538 GB, free: 6.957 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004124/0.3926, allocations: 321.4 kB / 0.5541 GB, free: 6.742 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.234e-05/0.3926, allocations: 30.86 kB / 0.5541 GB, free: 6.707 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000245/0.3929, allocations: 216.1 kB / 0.5544 GB, free: 6.512 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.291e-05/0.393, allocations: 76.34 kB / 0.5544 GB, free: 6.445 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.573e-05/0.393, allocations: 47.36 kB / 0.5545 GB, free: 6.41 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001998/0.3932, allocations: 342.7 kB / 0.5548 GB, free: 6.074 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001004/0.3933, allocations: 46.89 kB / 0.5548 GB, free: 6.055 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001845/0.3935, allocations: 155.4 kB / 0.555 GB, free: 5.895 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003925/0.3939, allocations: 222 kB / 0.5552 GB, free: 5.703 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.3939, allocations: 1.125 kB / 0.5552 GB, free: 5.703 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004283/0.3944, allocations: 260.2 kB / 0.5555 GB, free: 5.559 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.56e-05/0.3944, allocations: 10.61 kB / 0.5555 GB, free: 5.555 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.3944, allocations: 7.531 kB / 0.5555 GB, free: 5.551 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.465e-05/0.3944, allocations: 8.875 kB / 0.5555 GB, free: 5.547 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004011/0.3948, allocations: 83.03 kB / 0.5556 GB, free: 5.527 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001172/0.396, allocations: 1.262 MB / 0.5568 GB, free: 4.203 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001796/0.3962, allocations: 9.688 kB / 0.5568 GB, free: 4.199 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.709e-05/0.3962, allocations: 13.16 kB / 0.5568 GB, free: 4.195 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.0002485/0.3964, allocations: 168.4 kB / 0.557 GB, free: 4.043 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001046/0.3965, allocations: 43.34 kB / 0.557 GB, free: 4.016 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003926/0.3969, allocations: 178.3 kB / 0.5572 GB, free: 3.906 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.3969, allocations: 2.375 kB / 0.5572 GB, free: 3.906 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.554e-06/0.3969, allocations: 2.188 kB / 0.5572 GB, free: 3.906 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/0.397, allocations: 9.266 kB / 0.5572 GB, free: 3.898 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009109/0.3979, allocations: 0.4929 MB / 0.5577 GB, free: 3.488 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-05/0.3979, allocations: 5.328 kB / 0.5577 GB, free: 3.484 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002396/0.3981, allocations: 44.52 kB / 0.5577 GB, free: 3.473 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/0.3981, allocations: 6.219 kB / 0.5577 GB, free: 3.469 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.699e-05/0.3981, allocations: 2.156 kB / 0.5577 GB, free: 3.469 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.3982, allocations: 2.156 kB / 0.5577 GB, free: 3.469 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.229e-06/0.3982, allocations: 5 kB / 0.5577 GB, free: 3.465 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006408/0.3988, allocations: 499.3 kB / 0.5582 GB, free: 2.984 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.751e-05/0.3989, allocations: 31.75 kB / 0.5582 GB, free: 2.953 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.957e-05/0.3989, allocations: 8.031 kB / 0.5583 GB, free: 2.945 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002025/0.3991, allocations: 4 kB / 0.5583 GB, free: 2.941 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.543e-05/0.3991, allocations: 15.92 kB / 0.5583 GB, free: 2.926 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.444e-05/0.3991, allocations: 8 kB / 0.5583 GB, free: 2.918 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002489/0.3994, allocations: 227.2 kB / 0.5585 GB, free: 2.699 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3994, allocations: 0 / 0.5585 GB, free: 2.699 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004684/0.3999, allocations: 60 kB / 0.5586 GB, free: 2.641 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.0009235/0.4008, allocations: 1.03 MB / 0.5596 GB, free: 1.582 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003882/0.4012, allocations: 152.4 kB / 0.5597 GB, free: 1.434 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.4012, allocations: 192 / 0.5597 GB, free: 1.434 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001274/0.4013, allocations: 75.83 kB / 0.5598 GB, free: 1.359 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000801/0.4021, allocations: 92.38 kB / 0.5599 GB, free: 1.273 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004553/0.4067, allocations: 3.258 MB / 0.563 GB, free: 13.84 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002407/0.4069, allocations: 201.4 kB / 0.5632 GB, free: 13.62 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002178/0.4071, allocations: 54.94 kB / 0.5633 GB, free: 13.57 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001807/0.4073, allocations: 119.4 kB / 0.5634 GB, free: 13.45 MB / 414.1 MB Notification: Performance of SimCode: time 7.52e-07/0.4073, allocations: 0 / 0.5634 GB, free: 13.45 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0537/0.461, allocations: 7.585 MB / 0.5708 GB, free: 6.059 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.83, allocations: 7.875 kB / 0.5708 GB, free: 6.051 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: 14.820111735723913]