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.001369/0.001369, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.00148/0.00148, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.557/1.557, allocations: 230.6 MB / 258.3 MB, free: 7.996 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.2507/0.2507, allocations: 44.92 MB / 359.6 MB, free: 6.27 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ConversionBlocks,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_ConversionBlocks",fmuType="cs",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.002296/0.002296, allocations: 63.91 kB / 0.4939 GB, free: 10.68 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3387/0.341, allocations: 65.47 MB / 0.5578 GB, free: 7.516 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ConversionBlocks): time 0.003793/0.3448, allocations: 2.14 MB / 0.5599 GB, free: 5.609 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002697/0.3475, allocations: 1.394 MB / 0.5613 GB, free: 4.207 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001438/0.3476, allocations: 4 kB / 0.5613 GB, free: 4.203 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001033/0.3477, allocations: 27.66 kB / 0.5613 GB, free: 4.176 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001499/0.3479, allocations: 43.64 kB / 0.5613 GB, free: 4.133 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006347/0.3485, allocations: 199.2 kB / 0.5615 GB, free: 3.938 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002588/0.3488, allocations: 176.1 kB / 0.5617 GB, free: 3.762 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002085/0.349, allocations: 89.72 kB / 0.5618 GB, free: 3.676 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001923/0.3492, allocations: 91.64 kB / 0.5619 GB, free: 3.586 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001296/0.3493, allocations: 91.53 kB / 0.562 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.938e-05/0.3493, allocations: 16 kB / 0.562 GB, free: 3.48 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003806/0.3497, allocations: 151.9 kB / 0.5621 GB, free: 3.332 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.167e-05/0.3498, allocations: 43.84 kB / 0.5622 GB, free: 3.289 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.006e-05/0.3499, allocations: 95.45 kB / 0.5622 GB, free: 3.195 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005588/0.3504, allocations: 314.6 kB / 0.5625 GB, free: 2.887 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.198e-06/0.3504, allocations: 4 kB / 0.5625 GB, free: 2.883 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.3504, allocations: 0 / 0.5625 GB, free: 2.883 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.756e-06/0.3504, allocations: 7.984 kB / 0.5626 GB, free: 2.875 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.000687/0.3511, allocations: 457.5 kB / 0.563 GB, free: 2.398 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.031e-05/0.3512, allocations: 12.03 kB / 0.563 GB, free: 2.387 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.362e-05/0.3512, allocations: 24.77 kB / 0.563 GB, free: 2.363 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001246/0.3514, allocations: 95.48 kB / 0.5631 GB, free: 2.262 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001037/0.3524, allocations: 92.69 kB / 0.5632 GB, free: 2.172 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003989/0.3528, allocations: 166.1 kB / 0.5634 GB, free: 1.984 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.489e-05/0.3528, allocations: 33.31 kB / 0.5634 GB, free: 1.949 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.54e-05/0.3529, allocations: 36.38 kB / 0.5634 GB, free: 1.914 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004921/0.3534, allocations: 270.5 kB / 0.5637 GB, free: 1.645 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.823e-05/0.3534, allocations: 7.938 kB / 0.5637 GB, free: 1.637 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.994e-05/0.3534, allocations: 16 kB / 0.5637 GB, free: 1.621 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.3535, allocations: 15.94 kB / 0.5637 GB, free: 1.605 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003679/0.3538, allocations: 199.9 kB / 0.5639 GB, free: 1.41 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001109/0.3549, allocations: 0.6814 MB / 0.5646 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007643/0.3557, allocations: 333.3 kB / 0.5649 GB, free: 348 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002351/0.3559, allocations: 134.6 kB / 0.565 GB, free: 212 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.465e-05/0.356, allocations: 8.422 kB / 0.565 GB, free: 204 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.266e-05/0.356, allocations: 46.94 kB / 0.5651 GB, free: 148 kB / 398.1 MB Notification: Performance of pre-optimization done (n=53): time 2.675e-06/0.356, allocations: 0 / 0.5651 GB, free: 148 kB / 398.1 MB Notification: Performance of matching and sorting (n=67): time 0.001936/0.3579, allocations: 0.7438 MB / 0.5658 GB, free: 15.39 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.662e-05/0.358, allocations: 64.06 kB / 0.5659 GB, free: 15.32 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/0.3581, allocations: 105.8 kB / 0.566 GB, free: 15.2 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.675e-05/0.3581, allocations: 37.7 kB / 0.566 GB, free: 15.16 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.726e-05/0.3582, allocations: 137.7 kB / 0.5661 GB, free: 15.02 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001926/0.3584, allocations: 233.9 kB / 0.5664 GB, free: 14.79 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001237/0.3586, allocations: 82.34 kB / 0.5664 GB, free: 14.71 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.3587, allocations: 334.8 kB / 0.5668 GB, free: 14.37 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002209/0.3589, allocations: 105.2 kB / 0.5669 GB, free: 14.27 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002549/0.3592, allocations: 148.8 kB / 0.567 GB, free: 14.12 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005556/0.3598, allocations: 279.3 kB / 0.5673 GB, free: 13.84 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3598, allocations: 0 / 0.5673 GB, free: 13.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0006494/0.3604, allocations: 373.7 kB / 0.5676 GB, free: 13.47 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.3604, allocations: 10.81 kB / 0.5676 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.3604, allocations: 0 / 0.5676 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.079e-05/0.3604, allocations: 7.938 kB / 0.5676 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006548/0.3611, allocations: 191.8 kB / 0.5678 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.3611, allocations: 0 / 0.5678 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001073/0.3612, allocations: 19.98 kB / 0.5678 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.055e-05/0.3613, allocations: 16 kB / 0.5679 GB, free: 13.23 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (67): * Single equations (assignments): 67 * 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.0001699/0.3614, allocations: 153.7 kB / 0.568 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.761e-05/0.3615, allocations: 23.86 kB / 0.568 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001067/0.3616, allocations: 46.3 kB / 0.5681 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.583e-06/0.3616, allocations: 11.94 kB / 0.5681 GB, free: 12.99 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.3616, allocations: 0 / 0.5681 GB, free: 12.99 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.3616, allocations: 3.984 kB / 0.5681 GB, free: 12.99 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001849/0.3635, allocations: 0.9273 MB / 0.569 GB, free: 12.01 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.3635, allocations: 0 / 0.569 GB, free: 12.01 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000623/0.3641, allocations: 175.8 kB / 0.5692 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.353e-06/0.3641, allocations: 0 / 0.5692 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.041e-05/0.3641, allocations: 16 kB / 0.5692 GB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.564e-06/0.3641, allocations: 4 kB / 0.5692 GB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3641, allocations: 0 / 0.5692 GB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006667/0.3648, allocations: 486.2 kB / 0.5696 GB, free: 11.33 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.591e-05/0.3648, allocations: 19.86 kB / 0.5697 GB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.304e-05/0.3649, allocations: 12 kB / 0.5697 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001269/0.365, allocations: 12 kB / 0.5697 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.038e-05/0.3651, allocations: 40.58 kB / 0.5697 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.573e-05/0.3651, allocations: 15.98 kB / 0.5697 GB, free: 11.23 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.905e-05/0.3652, allocations: 87.28 kB / 0.5698 GB, free: 11.14 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3652, allocations: 0 / 0.5698 GB, free: 11.14 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003479/0.3655, allocations: 68 kB / 0.5699 GB, free: 11.08 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 (67): * Single equations (assignments): 67 * 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.001281/0.3668, allocations: 1.184 MB / 0.571 GB, free: 9.871 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006709/0.3675, allocations: 305.7 kB / 0.5713 GB, free: 9.57 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.3675, allocations: 4 kB / 0.5713 GB, free: 9.566 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003096/0.3678, allocations: 171.7 kB / 0.5715 GB, free: 9.398 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002829/0.3681, allocations: 20 kB / 0.5715 GB, free: 9.379 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003879/0.3719, allocations: 2.706 MB / 0.5742 GB, free: 6.586 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005844/0.3725, allocations: 0.7771 MB / 0.5749 GB, free: 5.785 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001822/0.3727, allocations: 48.25 kB / 0.575 GB, free: 5.738 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001838/0.3729, allocations: 99.39 kB / 0.5751 GB, free: 5.641 MB / 414.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3729, allocations: 0 / 0.5751 GB, free: 5.641 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0296/0.4025, allocations: 5.283 MB / 0.5802 GB, free: 0.4922 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.19, allocations: 5.062 kB / 0.5802 GB, free: 0.4922 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: 15.553773224994075]