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.001345/0.001345, 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.001428/0.001428, allocations: 212.7 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.53/1.53, 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.2432/0.2432, allocations: 44.91 MB / 358.8 MB, free: 6.301 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.0021/0.0021, allocations: 63.91 kB / 0.4931 GB, free: 10.7 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3394/0.3415, allocations: 65.46 MB / 0.557 GB, free: 7.527 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ConversionBlocks): time 0.003929/0.3454, allocations: 2.141 MB / 0.5591 GB, free: 5.621 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002537/0.3479, allocations: 1.402 MB / 0.5605 GB, free: 4.211 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001376/0.3481, allocations: 7.938 kB / 0.5605 GB, free: 4.203 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 7.866e-05/0.3481, allocations: 19.73 kB / 0.5605 GB, free: 4.184 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001393/0.3483, allocations: 35.66 kB / 0.5606 GB, free: 4.148 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006186/0.3489, allocations: 207.2 kB / 0.5608 GB, free: 3.945 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002725/0.3492, allocations: 176.1 kB / 0.5609 GB, free: 3.77 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002234/0.3494, allocations: 89.72 kB / 0.561 GB, free: 3.684 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002069/0.3496, allocations: 87.64 kB / 0.5611 GB, free: 3.598 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000157/0.3498, allocations: 91.48 kB / 0.5612 GB, free: 3.508 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.016e-05/0.3498, allocations: 16 kB / 0.5612 GB, free: 3.492 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003237/0.3501, allocations: 155.9 kB / 0.5613 GB, free: 3.34 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.671e-05/0.3502, allocations: 43.84 kB / 0.5614 GB, free: 3.297 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.109e-05/0.3502, allocations: 99.39 kB / 0.5615 GB, free: 3.199 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004898/0.3507, allocations: 318.6 kB / 0.5618 GB, free: 2.887 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3507, allocations: 0 / 0.5618 GB, free: 2.887 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3507, allocations: 0 / 0.5618 GB, free: 2.887 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.3508, allocations: 0 / 0.5618 GB, free: 2.887 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.0006726/0.3514, allocations: 463.8 kB / 0.5622 GB, free: 2.406 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.086e-05/0.3515, allocations: 12.03 kB / 0.5622 GB, free: 2.395 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001178/0.3516, allocations: 87.16 kB / 0.5623 GB, free: 2.301 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009389/0.3525, allocations: 88.69 kB / 0.5624 GB, free: 2.215 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003333/0.3529, allocations: 162.1 kB / 0.5626 GB, free: 2.031 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.679e-05/0.3529, allocations: 21.03 kB / 0.5626 GB, free: 2.012 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.159e-05/0.3529, allocations: 32.38 kB / 0.5626 GB, free: 1.98 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004199/0.3534, allocations: 234.2 kB / 0.5628 GB, free: 1.742 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.952e-05/0.3534, allocations: 7.938 kB / 0.5628 GB, free: 1.734 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.557e-05/0.3534, allocations: 12 kB / 0.5629 GB, free: 1.723 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.09e-05/0.3534, allocations: 8 kB / 0.5629 GB, free: 1.715 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003301/0.3537, allocations: 158.5 kB / 0.563 GB, free: 1.562 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00101/0.3547, allocations: 0.6093 MB / 0.5636 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005414/0.3553, allocations: 211.4 kB / 0.5638 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001342/0.3554, allocations: 65.23 kB / 0.5639 GB, free: 0.625 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.102e-05/0.3554, allocations: 240 / 0.5639 GB, free: 0.625 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.686e-05/0.3555, allocations: 42.8 kB / 0.5639 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 1.333e-06/0.3555, allocations: 0 / 0.5639 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.0004878/0.356, allocations: 218.9 kB / 0.5641 GB, free: 364 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.463e-05/0.356, allocations: 55.34 kB / 0.5642 GB, free: 296 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.353e-05/0.3561, allocations: 105.8 kB / 0.5643 GB, free: 180 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.751e-05/0.3562, allocations: 33.7 kB / 0.5643 GB, free: 140 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001143/0.3563, allocations: 148.7 kB / 0.5644 GB, free: 15.98 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.962e-05/0.3564, allocations: 103.2 kB / 0.5645 GB, free: 15.88 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.669e-05/0.3564, allocations: 41.69 kB / 0.5646 GB, free: 15.84 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.3566, allocations: 322.8 kB / 0.5649 GB, free: 15.51 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.947e-05/0.3567, allocations: 43.97 kB / 0.5649 GB, free: 15.47 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.723e-05/0.3568, allocations: 45.88 kB / 0.565 GB, free: 15.43 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002129/0.357, allocations: 113.3 kB / 0.5651 GB, free: 15.31 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.357, allocations: 7.938 kB / 0.5651 GB, free: 15.3 MB / 414.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0002826/0.3573, allocations: 169.6 kB / 0.5653 GB, free: 15.13 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.3573, allocations: 4 kB / 0.5653 GB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.3573, allocations: 0 / 0.5653 GB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.23e-05/0.3573, allocations: 0 / 0.5653 GB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003653/0.3577, allocations: 107.6 kB / 0.5654 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.776e-06/0.3577, allocations: 4 kB / 0.5654 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.716e-05/0.3578, allocations: 15.95 kB / 0.5654 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.347e-05/0.3578, allocations: 7.984 kB / 0.5654 GB, free: 15 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.0001192/0.3579, allocations: 129.8 kB / 0.5655 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.692e-05/0.3579, allocations: 11.91 kB / 0.5655 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.79e-05/0.358, allocations: 25.61 kB / 0.5655 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.121e-06/0.358, allocations: 7.938 kB / 0.5656 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.358, allocations: 3.938 kB / 0.5656 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.358, allocations: 0 / 0.5656 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003179/0.3583, allocations: 264.5 kB / 0.5658 GB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.3583, allocations: 4 kB / 0.5658 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003508/0.3587, allocations: 95.95 kB / 0.5659 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.3587, allocations: 0 / 0.5659 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.382e-05/0.3587, allocations: 4 kB / 0.5659 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.384e-06/0.3587, allocations: 11.92 kB / 0.5659 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3587, allocations: 3.938 kB / 0.5659 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003481/0.3591, allocations: 271.6 kB / 0.5662 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.374e-05/0.3591, allocations: 19.83 kB / 0.5662 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.14e-05/0.3591, allocations: 8 kB / 0.5662 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.989e-05/0.3592, allocations: 7.938 kB / 0.5662 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.761e-05/0.3593, allocations: 15.97 kB / 0.5662 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.287e-05/0.3593, allocations: 8 kB / 0.5662 GB, free: 14.05 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.517e-05/0.3593, allocations: 83.27 kB / 0.5663 GB, free: 13.97 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3593, allocations: 4 kB / 0.5663 GB, free: 13.96 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002956/0.3596, 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.0008042/0.3604, allocations: 0.8685 MB / 0.5672 GB, free: 13.01 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000293/0.3607, allocations: 127.9 kB / 0.5674 GB, free: 12.88 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3607, allocations: 0 / 0.5674 GB, free: 12.88 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001265/0.3608, allocations: 72.78 kB / 0.5674 GB, free: 12.81 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002548/0.3611, allocations: 15.94 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.00235/0.3635, allocations: 1.98 MB / 0.5694 GB, free: 10.74 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003807/0.3638, allocations: 0.7395 MB / 0.5701 GB, free: 9.977 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.312e-05/0.3639, allocations: 21.41 kB / 0.5701 GB, free: 9.957 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001061/0.364, allocations: 63.41 kB / 0.5702 GB, free: 9.895 MB / 414.1 MB Notification: Performance of SimCode: time 6.81e-07/0.364, allocations: 0 / 0.5702 GB, free: 9.895 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02965/0.3937, allocations: 2.998 MB / 0.5731 GB, free: 7.023 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.79, allocations: 8 kB / 0.5731 GB, free: 7.016 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.ConversionBlocks_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_ConversionBlocks_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 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.mat","/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.867202246095985]