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.001825/0.001825, 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.002122/0.002122, 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.519/1.519, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.234/0.234, allocations: 44.94 MB / 358.8 MB, free: 6.066 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.002107/0.002107, allocations: 63.91 kB / 0.493 GB, free: 10.53 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.334/0.3362, allocations: 65.47 MB / 0.557 GB, free: 7.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ConversionBlocks): time 0.004203/0.3404, allocations: 2.043 MB / 0.559 GB, free: 5.48 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002708/0.3431, allocations: 1.27 MB / 0.5602 GB, free: 4.203 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001406/0.3432, allocations: 4 kB / 0.5602 GB, free: 4.199 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.019e-05/0.3433, allocations: 23.67 kB / 0.5602 GB, free: 4.176 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001684/0.3435, allocations: 39.66 kB / 0.5603 GB, free: 4.137 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006612/0.3441, allocations: 195.3 kB / 0.5605 GB, free: 3.945 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002582/0.3444, allocations: 180.1 kB / 0.5606 GB, free: 3.766 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002276/0.3446, allocations: 81.72 kB / 0.5607 GB, free: 3.688 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000214/0.3448, allocations: 95.58 kB / 0.5608 GB, free: 3.594 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000118/0.3449, allocations: 75.55 kB / 0.5609 GB, free: 3.52 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.078e-05/0.345, allocations: 16 kB / 0.5609 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002944/0.3453, allocations: 147.9 kB / 0.561 GB, free: 3.359 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.041e-05/0.3453, allocations: 47.78 kB / 0.5611 GB, free: 3.312 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.469e-05/0.3454, allocations: 75.59 kB / 0.5611 GB, free: 3.238 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004313/0.3458, allocations: 322.6 kB / 0.5615 GB, free: 2.922 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3458, allocations: 0 / 0.5615 GB, free: 2.922 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.3458, allocations: 0 / 0.5615 GB, free: 2.922 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.3458, allocations: 4 kB / 0.5615 GB, free: 2.918 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.0006162/0.3464, allocations: 467.2 kB / 0.5619 GB, free: 2.434 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.3465, allocations: 8.031 kB / 0.5619 GB, free: 2.426 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001125/0.3466, allocations: 87.16 kB / 0.562 GB, free: 2.332 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009103/0.3475, allocations: 84.69 kB / 0.5621 GB, free: 2.25 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003148/0.3478, allocations: 166.1 kB / 0.5622 GB, free: 2.062 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.215e-05/0.3478, allocations: 25.03 kB / 0.5623 GB, free: 2.039 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.758e-05/0.3479, allocations: 32.38 kB / 0.5623 GB, free: 2.008 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004222/0.3483, allocations: 234.2 kB / 0.5625 GB, free: 1.77 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.3483, allocations: 0 / 0.5625 GB, free: 1.77 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.571e-05/0.3483, allocations: 12 kB / 0.5625 GB, free: 1.758 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.3484, allocations: 8 kB / 0.5625 GB, free: 1.75 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003146/0.3487, allocations: 158.5 kB / 0.5627 GB, free: 1.598 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009773/0.3496, allocations: 0.5664 MB / 0.5632 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005363/0.3502, allocations: 207.9 kB / 0.5634 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001412/0.3503, allocations: 69.22 kB / 0.5635 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.27e-05/0.3503, allocations: 4.234 kB / 0.5635 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.17e-05/0.3504, allocations: 46.72 kB / 0.5635 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 1.653e-06/0.3504, allocations: 0 / 0.5635 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.0004973/0.3509, allocations: 211 kB / 0.5637 GB, free: 444 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.846e-05/0.3509, allocations: 55.34 kB / 0.5638 GB, free: 376 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.907e-05/0.351, allocations: 109.8 kB / 0.5639 GB, free: 256 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.838e-05/0.3511, allocations: 33.7 kB / 0.5639 GB, free: 216 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.143e-05/0.3511, allocations: 152.5 kB / 0.5641 GB, free: 60 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001056/0.3513, allocations: 99.34 kB / 0.5642 GB, free: 15.96 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.678e-05/0.3513, allocations: 37.7 kB / 0.5642 GB, free: 15.91 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.3515, allocations: 322.8 kB / 0.5645 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/0.3516, allocations: 51.91 kB / 0.5646 GB, free: 15.54 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.694e-05/0.3517, allocations: 49.84 kB / 0.5646 GB, free: 15.49 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002189/0.3519, allocations: 113.3 kB / 0.5647 GB, free: 15.38 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.3519, allocations: 0 / 0.5647 GB, free: 15.38 MB / 414.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0002892/0.3522, allocations: 161.6 kB / 0.5649 GB, free: 15.21 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.3522, allocations: 4 kB / 0.5649 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.3522, allocations: 0 / 0.5649 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.3522, allocations: 4 kB / 0.5649 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003811/0.3526, allocations: 111.6 kB / 0.565 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.3526, allocations: 0 / 0.565 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.594e-05/0.3527, allocations: 11.95 kB / 0.565 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.381e-05/0.3527, allocations: 4 kB / 0.565 GB, free: 15.09 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.0001204/0.3528, allocations: 137.7 kB / 0.5651 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.678e-05/0.3528, allocations: 11.91 kB / 0.5652 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.155e-05/0.3529, allocations: 25.62 kB / 0.5652 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.281e-06/0.3529, allocations: 7.938 kB / 0.5652 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.842e-06/0.3529, allocations: 4 kB / 0.5652 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.3529, allocations: 0 / 0.5652 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003119/0.3532, allocations: 244.6 kB / 0.5654 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.3532, allocations: 0 / 0.5654 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003561/0.3536, allocations: 103.8 kB / 0.5655 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.528e-06/0.3536, allocations: 4 kB / 0.5655 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.459e-05/0.3536, allocations: 8 kB / 0.5655 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.222e-06/0.3536, allocations: 3.938 kB / 0.5655 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.3536, allocations: 0 / 0.5655 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003403/0.354, allocations: 271.7 kB / 0.5658 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.507e-05/0.354, allocations: 19.78 kB / 0.5658 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.337e-05/0.354, allocations: 7.984 kB / 0.5658 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.044e-05/0.3541, allocations: 7.938 kB / 0.5658 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.564e-05/0.3541, allocations: 16.22 kB / 0.5658 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.718e-06/0.3542, allocations: 8 kB / 0.5659 GB, free: 14.15 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.999e-05/0.3542, allocations: 91.28 kB / 0.5659 GB, free: 14.06 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3542, allocations: 0 / 0.5659 GB, free: 14.06 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000308/0.3545, allocations: 63.72 kB / 0.566 GB, free: 14 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.0008661/0.3554, allocations: 0.8724 MB / 0.5669 GB, free: 13.09 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002831/0.3557, allocations: 123.9 kB / 0.567 GB, free: 12.97 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3557, allocations: 0 / 0.567 GB, free: 12.97 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001258/0.3558, allocations: 76.84 kB / 0.567 GB, free: 12.9 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002354/0.356, allocations: 13.97 kB / 0.5671 GB, free: 12.89 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002563/0.3586, allocations: 1.972 MB / 0.569 GB, free: 10.84 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001713/0.3588, allocations: 137.6 kB / 0.5691 GB, free: 10.68 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001106/0.3589, allocations: 17.41 kB / 0.5691 GB, free: 10.66 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001195/0.359, allocations: 71.41 kB / 0.5692 GB, free: 10.59 MB / 414.1 MB Notification: Performance of SimCode: time 8.71e-07/0.359, allocations: 0 / 0.5692 GB, free: 10.59 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02935/0.3883, allocations: 3.207 MB / 0.5723 GB, free: 7.516 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.76, allocations: 13.05 kB / 0.5723 GB, free: 7.508 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.801519737113267]