Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.ConversionBlocks.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.001346/0.001346, 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.001735/0.001735, allocations: 212.8 kB / 23.74 MB, free: 4.656 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.486/1.486, 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2355/0.2355, allocations: 44.91 MB / 358.8 MB, free: 6.293 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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(ModelicaTest.Blocks.ConversionBlocks,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_ConversionBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ConversionBlocks,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_ConversionBlocks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest 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.002525/0.002525, allocations: 75.89 kB / 0.4931 GB, free: 10.69 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3525/0.355, allocations: 65.46 MB / 0.557 GB, free: 7.523 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ConversionBlocks): time 0.003615/0.3587, allocations: 2.141 MB / 0.5591 GB, free: 5.621 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002453/0.3611, allocations: 1.398 MB / 0.5605 GB, free: 4.215 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001122/0.3612, allocations: 4 kB / 0.5605 GB, free: 4.211 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 7.641e-05/0.3613, allocations: 23.67 kB / 0.5605 GB, free: 4.188 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001196/0.3614, allocations: 35.7 kB / 0.5606 GB, free: 4.152 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005422/0.362, allocations: 195.3 kB / 0.5607 GB, free: 3.961 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002329/0.3622, allocations: 184 kB / 0.5609 GB, free: 3.777 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002125/0.3624, allocations: 93.7 kB / 0.561 GB, free: 3.688 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001734/0.3626, allocations: 91.64 kB / 0.5611 GB, free: 3.598 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000115/0.3627, allocations: 87.55 kB / 0.5612 GB, free: 3.512 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.571e-05/0.3627, allocations: 16 kB / 0.5612 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003023/0.363, allocations: 147.9 kB / 0.5613 GB, free: 3.352 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.897e-05/0.3631, allocations: 51.77 kB / 0.5614 GB, free: 3.301 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.64e-05/0.3632, allocations: 87.47 kB / 0.5615 GB, free: 3.215 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004814/0.3636, allocations: 318.6 kB / 0.5618 GB, free: 2.902 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.236e-06/0.3637, allocations: 4 kB / 0.5618 GB, free: 2.898 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3637, allocations: 0 / 0.5618 GB, free: 2.898 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.361e-05/0.3637, allocations: 4 kB / 0.5618 GB, free: 2.895 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: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.000729/0.3644, allocations: 463.8 kB / 0.5622 GB, free: 2.414 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.3644, allocations: 8.031 kB / 0.5622 GB, free: 2.406 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001291/0.3646, allocations: 95.19 kB / 0.5623 GB, free: 2.305 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001006/0.3656, allocations: 88.69 kB / 0.5624 GB, free: 2.219 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003981/0.366, allocations: 162.2 kB / 0.5626 GB, free: 2.035 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.324e-05/0.366, allocations: 21.03 kB / 0.5626 GB, free: 2.016 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.968e-05/0.366, allocations: 36.31 kB / 0.5626 GB, free: 1.98 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004784/0.3665, allocations: 234.2 kB / 0.5628 GB, free: 1.742 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.3665, allocations: 0 / 0.5628 GB, free: 1.742 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.951e-05/0.3666, allocations: 16 kB / 0.5628 GB, free: 1.727 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.3666, allocations: 8 kB / 0.5629 GB, free: 1.719 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003172/0.3669, allocations: 158.5 kB / 0.563 GB, free: 1.566 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001026/0.3679, allocations: 0.6131 MB / 0.5636 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005652/0.3685, allocations: 219.3 kB / 0.5638 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001315/0.3686, allocations: 57.3 kB / 0.5639 GB, free: 0.625 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.715e-05/0.3686, allocations: 4.234 kB / 0.5639 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.537e-05/0.3687, allocations: 42.73 kB / 0.5639 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 1.853e-06/0.3687, allocations: 0 / 0.5639 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.0005035/0.3692, allocations: 207 kB / 0.5641 GB, free: 372 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.25e-05/0.3692, allocations: 67.34 kB / 0.5642 GB, free: 292 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.43e-05/0.3693, allocations: 101.9 kB / 0.5643 GB, free: 180 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.174e-05/0.3693, allocations: 25.7 kB / 0.5643 GB, free: 148 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.3695, allocations: 156.6 kB / 0.5644 GB, free: 15.98 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.268e-05/0.3696, allocations: 99.09 kB / 0.5645 GB, free: 15.89 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.677e-05/0.3696, allocations: 45.69 kB / 0.5646 GB, free: 15.84 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.3698, allocations: 322.8 kB / 0.5649 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.464e-05/0.3699, allocations: 43.98 kB / 0.5649 GB, free: 15.47 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.717e-05/0.37, allocations: 45.61 kB / 0.565 GB, free: 15.43 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002067/0.3702, allocations: 117.2 kB / 0.5651 GB, free: 15.31 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3702, allocations: 0 / 0.5651 GB, free: 15.31 MB / 414.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0002752/0.3704, allocations: 165.6 kB / 0.5652 GB, free: 15.14 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.3705, allocations: 10.34 kB / 0.5653 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.3705, allocations: 0 / 0.5653 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.3705, allocations: 0 / 0.5653 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003671/0.3709, allocations: 107.8 kB / 0.5654 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.3709, allocations: 0 / 0.5654 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.855e-05/0.3709, allocations: 11.94 kB / 0.5654 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.523e-05/0.3709, allocations: 12 kB / 0.5654 GB, free: 15.01 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001435/0.3711, allocations: 129.7 kB / 0.5655 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.615e-05/0.3711, allocations: 15.91 kB / 0.5655 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.184e-05/0.3712, allocations: 25.62 kB / 0.5655 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.917e-06/0.3712, allocations: 7.938 kB / 0.5656 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.3712, allocations: 0 / 0.5656 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.3712, allocations: 3.984 kB / 0.5656 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003361/0.3716, allocations: 248.8 kB / 0.5658 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.3716, allocations: 8 kB / 0.5658 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003552/0.3719, allocations: 103.9 kB / 0.5659 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.212e-06/0.3719, allocations: 4 kB / 0.5659 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.382e-05/0.3719, allocations: 11.88 kB / 0.5659 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.007e-06/0.3719, allocations: 3.938 kB / 0.5659 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3719, allocations: 0 / 0.5659 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003524/0.3723, allocations: 271.7 kB / 0.5662 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.006e-05/0.3723, allocations: 15.84 kB / 0.5662 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.783e-05/0.3723, allocations: 8 kB / 0.5662 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.623e-05/0.3724, allocations: 11.94 kB / 0.5662 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.726e-05/0.3725, allocations: 19.95 kB / 0.5662 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.176e-05/0.3725, allocations: 7.984 kB / 0.5662 GB, free: 14.05 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.158e-05/0.3726, allocations: 83.28 kB / 0.5663 GB, free: 13.97 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3726, allocations: 0 / 0.5663 GB, free: 13.97 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003203/0.3729, allocations: 59.78 kB / 0.5664 GB, free: 13.91 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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.0009907/0.3739, allocations: 0.8724 MB / 0.5672 GB, free: 13.01 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002906/0.3742, allocations: 123.9 kB / 0.5673 GB, free: 12.89 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.3742, allocations: 0 / 0.5673 GB, free: 12.89 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001245/0.3743, allocations: 76.78 kB / 0.5674 GB, free: 12.82 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002442/0.3745, allocations: 15.92 kB / 0.5674 GB, free: 12.8 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002518/0.3771, allocations: 1.972 MB / 0.5694 GB, free: 10.75 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003872/0.3775, allocations: 0.7512 MB / 0.5701 GB, free: 9.977 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.447e-05/0.3775, allocations: 17.41 kB / 0.5701 GB, free: 9.961 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.835e-05/0.3776, allocations: 63.42 kB / 0.5702 GB, free: 9.898 MB / 414.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3776, allocations: 0 / 0.5702 GB, free: 9.898 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02748/0.4051, allocations: 2.989 MB / 0.5731 GB, free: 7.035 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.7, allocations: 11.92 kB / 0.5731 GB, free: 7.023 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ConversionBlocks.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.ConversionBlocks.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.ConversionBlocks.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ConversionBlocks.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Blocks.ConversionBlocks_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000219912 ModelicaTest_4_0_0_ModelicaTest_Blocks_ConversionBlocks.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.ConversionBlocks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.ConversionBlocks_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ConversionBlocks/ConversionBlocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ConversionBlocks.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.880529825000849]