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.001441/0.001441, allocations: 116.2 kB / 18.49 MB, free: 4.559 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.002053/0.002053, allocations: 218.9 kB / 21.46 MB, free: 1.605 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.535/1.535, allocations: 230.6 MB / 254.8 MB, free: 15.23 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.2224/0.2224, allocations: 44.91 MB / 355.8 MB, free: 12.34 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.002019/0.002019, allocations: 68.17 kB / 0.4886 GB, free: 11.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1272, allocations: 65.41 MB / 0.5525 GB, free: 10.11 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ConversionBlocks): time 0.003788/0.131, allocations: 2.119 MB / 0.5545 GB, free: 7.977 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002364/0.1333, allocations: 1.383 MB / 0.5559 GB, free: 6.586 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.944e-05/0.1334, allocations: 4 kB / 0.5559 GB, free: 6.582 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 6.512e-05/0.1335, allocations: 23.67 kB / 0.5559 GB, free: 6.559 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001202/0.1336, allocations: 43.64 kB / 0.5559 GB, free: 6.516 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005087/0.1341, allocations: 195.3 kB / 0.5561 GB, free: 6.324 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002413/0.1344, allocations: 188 kB / 0.5563 GB, free: 6.141 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001898/0.1345, allocations: 81.81 kB / 0.5564 GB, free: 6.066 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001876/0.1347, allocations: 87.64 kB / 0.5565 GB, free: 5.98 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001201/0.1348, allocations: 95.48 kB / 0.5566 GB, free: 5.887 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.015e-05/0.1349, allocations: 19.98 kB / 0.5566 GB, free: 5.867 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003166/0.1352, allocations: 151.9 kB / 0.5567 GB, free: 5.719 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.972e-05/0.1352, allocations: 39.86 kB / 0.5568 GB, free: 5.68 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 8.856e-05/0.1353, allocations: 99.39 kB / 0.5569 GB, free: 5.582 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000472/0.1358, allocations: 318.5 kB / 0.5572 GB, free: 5.27 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1358, allocations: 0 / 0.5572 GB, free: 5.27 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1358, allocations: 4 kB / 0.5572 GB, free: 5.266 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.1358, allocations: 0 / 0.5572 GB, free: 5.266 MB / 414.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.0006895/0.1365, allocations: 0.5298 MB / 0.5577 GB, free: 4.684 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.1365, allocations: 12.03 kB / 0.5577 GB, free: 4.672 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.891e-05/0.1366, allocations: 16.78 kB / 0.5577 GB, free: 4.652 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001221/0.1367, allocations: 103.5 kB / 0.5578 GB, free: 4.543 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009376/0.1376, allocations: 84.7 kB / 0.5579 GB, free: 4.461 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002922/0.1379, allocations: 231.9 kB / 0.5581 GB, free: 4.195 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.956e-05/0.138, allocations: 29.38 kB / 0.5581 GB, free: 4.168 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.674e-05/0.138, allocations: 44.33 kB / 0.5582 GB, free: 4.125 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000477/0.1385, allocations: 270.5 kB / 0.5584 GB, free: 3.852 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.1385, allocations: 7.953 kB / 0.5584 GB, free: 3.844 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.816e-05/0.1386, allocations: 16 kB / 0.5585 GB, free: 3.828 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.023e-05/0.1386, allocations: 8 kB / 0.5585 GB, free: 3.82 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003704/0.1389, allocations: 199.8 kB / 0.5587 GB, free: 3.625 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001095/0.14, allocations: 0.7123 MB / 0.5594 GB, free: 2.859 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000717/0.1407, allocations: 345.3 kB / 0.5597 GB, free: 2.516 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002264/0.141, allocations: 136.9 kB / 0.5598 GB, free: 2.383 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.205e-05/0.141, allocations: 8.422 kB / 0.5598 GB, free: 2.375 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.019e-05/0.141, allocations: 46.94 kB / 0.5599 GB, free: 2.32 MB / 414.1 MB Notification: Performance of pre-optimization done (n=53): time 2.184e-06/0.141, allocations: 0 / 0.5599 GB, free: 2.32 MB / 414.1 MB Notification: Performance of matching and sorting (n=67): time 0.001741/0.1428, allocations: 0.75 MB / 0.5606 GB, free: 1.559 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.893e-05/0.1428, allocations: 59.97 kB / 0.5607 GB, free: 1.488 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.784e-05/0.1429, allocations: 97.86 kB / 0.5607 GB, free: 1.383 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.409e-05/0.1429, allocations: 41.7 kB / 0.5608 GB, free: 1.336 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.603e-05/0.143, allocations: 133.7 kB / 0.5609 GB, free: 1.199 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001913/0.1432, allocations: 245.9 kB / 0.5611 GB, free: 0.957 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001332/0.1433, allocations: 82.25 kB / 0.5612 GB, free: 0.8711 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.1435, allocations: 334.8 kB / 0.5615 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002204/0.1437, allocations: 105.1 kB / 0.5616 GB, free: 444 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002405/0.144, allocations: 147.8 kB / 0.5618 GB, free: 292 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004857/0.1444, allocations: 287.1 kB / 0.5621 GB, free: 4 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1444, allocations: 0 / 0.5621 GB, free: 4 kB / 414.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0006174/0.1451, allocations: 365.6 kB / 0.5624 GB, free: 15.64 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.1451, allocations: 4 kB / 0.5624 GB, free: 15.64 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.1451, allocations: 0 / 0.5624 GB, free: 15.64 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/0.1451, allocations: 7.938 kB / 0.5624 GB, free: 15.63 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006414/0.1457, allocations: 187.8 kB / 0.5626 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.824e-06/0.1458, allocations: 0 / 0.5626 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001061/0.1459, allocations: 23.98 kB / 0.5626 GB, free: 15.42 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.537e-05/0.1459, allocations: 16 kB / 0.5626 GB, free: 15.41 MB / 430.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.000162/0.146, allocations: 141.7 kB / 0.5628 GB, free: 15.26 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.718e-05/0.1461, allocations: 27.86 kB / 0.5628 GB, free: 15.23 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001204/0.1462, allocations: 46.3 kB / 0.5628 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.1462, allocations: 4 kB / 0.5628 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/0.1462, allocations: 0 / 0.5628 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.1462, allocations: 7.969 kB / 0.5629 GB, free: 15.17 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001708/0.148, allocations: 0.961 MB / 0.5638 GB, free: 14.15 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.148, allocations: 0 / 0.5638 GB, free: 14.15 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005778/0.1485, allocations: 171.9 kB / 0.564 GB, free: 13.98 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.454e-06/0.1485, allocations: 7.938 kB / 0.564 GB, free: 13.98 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.383e-05/0.1486, allocations: 12.25 kB / 0.564 GB, free: 13.96 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.296e-06/0.1486, allocations: 4 kB / 0.564 GB, free: 13.96 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1486, allocations: 0 / 0.564 GB, free: 13.96 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006673/0.1492, allocations: 487.7 kB / 0.5644 GB, free: 13.47 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.77e-05/0.1493, allocations: 101 kB / 0.5645 GB, free: 13.36 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.016e-05/0.1493, allocations: 12 kB / 0.5646 GB, free: 13.34 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001282/0.1495, allocations: 15.98 kB / 0.5646 GB, free: 13.33 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.406e-05/0.1495, allocations: 32.52 kB / 0.5646 GB, free: 13.29 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.492e-05/0.1496, allocations: 16 kB / 0.5646 GB, free: 13.28 MB / 430.1 MB Notification: Performance of sorting global known variables: time 6.122e-05/0.1496, allocations: 87.27 kB / 0.5647 GB, free: 13.19 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1496, allocations: 0 / 0.5647 GB, free: 13.19 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003404/0.15, allocations: 76 kB / 0.5648 GB, free: 13.12 MB / 430.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.001296/0.1513, allocations: 1.165 MB / 0.5659 GB, free: 11.93 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.000583/0.1519, allocations: 312.4 kB / 0.5662 GB, free: 11.62 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.1519, allocations: 3.938 kB / 0.5662 GB, free: 11.62 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002752/0.1521, allocations: 175 kB / 0.5664 GB, free: 11.45 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002596/0.1524, allocations: 26.19 kB / 0.5664 GB, free: 11.43 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003529/0.1559, allocations: 2.691 MB / 0.569 GB, free: 8.652 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004185/0.1563, allocations: 0.7732 MB / 0.5698 GB, free: 7.852 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001415/0.1565, allocations: 48.25 kB / 0.5698 GB, free: 7.801 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001678/0.1566, allocations: 99.41 kB / 0.5699 GB, free: 7.703 MB / 430.1 MB Notification: Performance of SimCode: time 7.61e-07/0.1566, allocations: 0 / 0.5699 GB, free: 7.703 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02161/0.1783, allocations: 4.901 MB / 0.5747 GB, free: 2.883 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.705/8.883, allocations: 10.44 kB / 0.5747 GB, free: 2.875 MB / 430.1 MB " [Timeout remaining time 651] (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: 12.16088313300861]