Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.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.001269/0.001269, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001497/0.001497, allocations: 214.4 kB / 23.75 MB, free: 4.668 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.434/1.434, allocations: 230.6 MB / 257.5 MB, free: 8 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.195/0.195, allocations: 38.52 MB / 352.5 MB, free: 12.55 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.Inverters.Chopper,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper",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.002064/0.002064, allocations: 63.89 kB / 492.5 MB, free: 4.883 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.319/0.321, allocations: 62.46 MB / 0.542 GB, free: 452 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.01207/0.3331, allocations: 6.79 MB / 0.5486 GB, free: 11.13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004837/0.338, allocations: 1.793 MB / 0.5504 GB, free: 9.676 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000692/0.3386, allocations: 30.72 kB / 0.5504 GB, free: 9.66 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000861/0.3395, allocations: 226.4 kB / 0.5506 GB, free: 9.48 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001231/0.3407, allocations: 392.4 kB / 0.551 GB, free: 9.156 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005697/0.3413, allocations: 226.1 kB / 0.5512 GB, free: 8.969 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00129/0.3426, allocations: 1.072 MB / 0.5523 GB, free: 8.344 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005408/0.3431, allocations: 312.4 kB / 0.5526 GB, free: 8.145 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001056/0.3442, allocations: 494.7 kB / 0.553 GB, free: 7.855 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008271/0.345, allocations: 0.4949 MB / 0.5535 GB, free: 7.547 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001116/0.3451, allocations: 85.62 kB / 0.5536 GB, free: 7.547 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001617/0.3453, allocations: 85.66 kB / 0.5537 GB, free: 7.547 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003451/0.3456, allocations: 287.4 kB / 0.554 GB, free: 7.34 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004181/0.3461, allocations: 398.5 kB / 0.5543 GB, free: 7.074 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001194/0.3472, allocations: 1.05 MB / 0.5554 GB, free: 6.301 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.3473, allocations: 0 / 0.5554 GB, free: 6.301 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.3473, allocations: 1.156 kB / 0.5554 GB, free: 6.301 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.774e-05/0.3473, allocations: 0 / 0.5554 GB, free: 6.301 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: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.002001/0.3493, allocations: 0.9613 MB / 0.5563 GB, free: 5.578 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.3493, allocations: 14.14 kB / 0.5563 GB, free: 5.574 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001338/0.3494, allocations: 108.1 kB / 0.5564 GB, free: 5.48 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001401/0.3496, allocations: 82.12 kB / 0.5565 GB, free: 5.438 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001205/0.3508, allocations: 0.5846 MB / 0.5571 GB, free: 4.98 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001929/0.351, allocations: 193.9 kB / 0.5572 GB, free: 4.773 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.914e-05/0.3511, allocations: 59.94 kB / 0.5573 GB, free: 4.715 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001318/0.3524, allocations: 0.7538 MB / 0.558 GB, free: 3.926 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.856e-05/0.3524, allocations: 3.938 kB / 0.558 GB, free: 3.922 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.113e-05/0.3525, allocations: 24 kB / 0.5581 GB, free: 3.898 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.553e-05/0.3525, allocations: 16 kB / 0.5581 GB, free: 3.883 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001206/0.3537, allocations: 0.605 MB / 0.5587 GB, free: 3.273 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003482/0.3572, allocations: 2.401 MB / 0.561 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009082/0.3581, allocations: 397 kB / 0.5614 GB, free: 380 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004082/0.3585, allocations: 191 kB / 0.5616 GB, free: 180 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.226e-05/0.3585, allocations: 4.281 kB / 0.5616 GB, free: 176 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004697/0.359, allocations: 243.5 kB / 0.5618 GB, free: 15.91 MB / 414.1 MB Notification: Performance of pre-optimization done (n=36): time 1.723e-06/0.359, allocations: 3.938 kB / 0.5618 GB, free: 15.9 MB / 414.1 MB Notification: Performance of matching and sorting (n=36): time 0.003372/0.3624, allocations: 0.7917 MB / 0.5626 GB, free: 15.1 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.164e-05/0.3625, allocations: 144.5 kB / 0.5627 GB, free: 14.93 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004765/0.3629, allocations: 405.9 kB / 0.5631 GB, free: 14.52 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.913e-05/0.363, allocations: 37.69 kB / 0.5632 GB, free: 14.48 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002538/0.3632, allocations: 324.7 kB / 0.5635 GB, free: 14.16 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001126/0.3634, allocations: 123 kB / 0.5636 GB, free: 14.04 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001267/0.3635, allocations: 82.08 kB / 0.5637 GB, free: 13.95 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001848/0.3637, allocations: 354.8 kB / 0.564 GB, free: 13.6 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003161/0.364, allocations: 132.8 kB / 0.5641 GB, free: 13.47 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003936/0.3644, allocations: 246 kB / 0.5644 GB, free: 13.18 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001565/0.3659, allocations: 0.6525 MB / 0.565 GB, free: 12.48 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.3659, allocations: 4 kB / 0.565 GB, free: 12.47 MB / 414.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001081/0.367, allocations: 0.5255 MB / 0.5655 GB, free: 11.93 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.367, allocations: 4 kB / 0.5655 GB, free: 11.92 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.367, allocations: 4 kB / 0.5655 GB, free: 11.92 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005141/0.3676, allocations: 148.9 kB / 0.5657 GB, free: 11.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000297/0.3679, allocations: 83.83 kB / 0.5657 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00362/0.3715, allocations: 2.163 MB / 0.5679 GB, free: 9.418 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003844/0.3719, allocations: 55.66 kB / 0.5679 GB, free: 9.363 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.074e-05/0.3719, allocations: 16 kB / 0.5679 GB, free: 9.348 MB / 414.1 MB Warning: Assuming fixed start value for the following 2 variables: chopper.modulator.t1:DISCRETE(unit = \"s\" fixed = true protected = true ) type: Real chopper.modulator.t0:DISCRETE(unit = \"s\" fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 8 (system.initime,$whenCondition1,$PRE.chopper.modulator.t1,$PRE.chopper.modulator.t0,chopper.chopper.diode.on,chopper.modulator.t1,chopper.modulator.t0,chopper.modulator.gate) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003737/0.3723, allocations: 244.5 kB / 0.5682 GB, free: 9.102 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.988e-05/0.3723, allocations: 59.59 kB / 0.5682 GB, free: 9.043 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001295/0.3736, allocations: 474.6 kB / 0.5687 GB, free: 8.566 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/0.3736, allocations: 4 kB / 0.5687 GB, free: 8.562 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.3736, allocations: 4 kB / 0.5687 GB, free: 8.559 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.745e-06/0.3737, allocations: 3.984 kB / 0.5687 GB, free: 8.555 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008377/0.3745, allocations: 0.6541 MB / 0.5693 GB, free: 7.848 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.3745, allocations: 4 kB / 0.5693 GB, free: 7.844 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002445/0.3747, allocations: 55.94 kB / 0.5694 GB, free: 7.789 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004198/0.3752, allocations: 140.8 kB / 0.5695 GB, free: 7.648 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.049e-05/0.3752, allocations: 8.094 kB / 0.5695 GB, free: 7.641 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003358/0.3786, allocations: 2.14 MB / 0.5716 GB, free: 5.387 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.3786, allocations: 96 / 0.5716 GB, free: 5.387 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001631/0.3802, allocations: 0.696 MB / 0.5723 GB, free: 4.66 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002051/0.3804, allocations: 79.59 kB / 0.5724 GB, free: 4.582 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.652e-05/0.3804, allocations: 4 kB / 0.5724 GB, free: 4.578 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002289/0.3807, allocations: 19.92 kB / 0.5724 GB, free: 4.559 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.3808, allocations: 39.94 kB / 0.5724 GB, free: 4.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.487e-05/0.3808, allocations: 11.98 kB / 0.5724 GB, free: 4.508 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000355/0.3812, allocations: 279.2 kB / 0.5727 GB, free: 4.238 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3812, allocations: 0 / 0.5727 GB, free: 4.238 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006524/0.3818, allocations: 163.6 kB / 0.5729 GB, free: 4.078 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (meterDCin.pav,meterDCout.pav,load.i) * Number of discrete variables: 6 ($whenCondition1,chopper.modulator.gate,chopper.modulator.t0,chopper.modulator.t1,chopper.chopper.diode.on,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002035/0.3839, allocations: 1.25 MB / 0.5741 GB, free: 2.789 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001178/0.385, allocations: 498.6 kB / 0.5746 GB, free: 2.289 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.385, allocations: 0 / 0.5746 GB, free: 2.289 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005762/0.3856, allocations: 327 kB / 0.5749 GB, free: 1.957 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006866/0.3863, allocations: 157.9 kB / 0.575 GB, free: 1.805 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007497/0.3938, allocations: 4.587 MB / 0.5795 GB, free: 13 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006408/0.3944, allocations: 0.9289 MB / 0.5804 GB, free: 12.04 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002765/0.3947, allocations: 80.64 kB / 0.5805 GB, free: 11.96 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002565/0.395, allocations: 199.4 kB / 0.5807 GB, free: 11.77 MB / 430.1 MB Notification: Performance of SimCode: time 8.31e-07/0.395, allocations: 0 / 0.5807 GB, free: 11.77 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0511/0.4461, allocations: 13.7 MB / 0.594 GB, free: 14.27 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.28/13.73, allocations: 11.23 kB / 0.5941 GB, free: 14.27 MB / 446.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0002 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.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.597137178992853]