Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.ComplexBlocks.Examples.TestConversionBlock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2020,variableFilter="time|len.y|phi.y",fileNamePrefix="Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock") translateModel(Modelica.ComplexBlocks.Examples.TestConversionBlock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2020,variableFilter="time|len.y|phi.y",fileNamePrefix="Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008267/0.0008267, allocations: 91.17 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000843/0.0008431, allocations: 173 kB / 17.56 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.495/1.495, allocations: 223.2 MB / 241.6 MB, free: 120 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000312/0.0003119, allocations: 8 kB / 301.4 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1489/0.1492, allocations: 50.42 MB / 351.8 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.002722/0.152, allocations: 1.221 MB / 353 MB, free: 2.465 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001197/0.1532, allocations: 487.5 kB / 353.5 MB, free: 1.984 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.486e-05/0.1533, allocations: 0 / 353.5 MB, free: 1.984 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001386/0.1535, allocations: 15.92 kB / 353.5 MB, free: 1.969 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001001/0.1536, allocations: 11.94 kB / 353.5 MB, free: 1.957 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002258/0.1538, allocations: 35.91 kB / 353.6 MB, free: 1.922 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001402/0.154, allocations: 51.84 kB / 353.6 MB, free: 1.871 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000144/0.1541, allocations: 12 kB / 353.6 MB, free: 1.859 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001537/0.1543, allocations: 31.78 kB / 353.7 MB, free: 1.828 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.021e-05/0.1544, allocations: 27.91 kB / 353.7 MB, free: 1.801 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.815e-05/0.1544, allocations: 4 kB / 353.7 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.703e-05/0.1545, allocations: 12 kB / 353.7 MB, free: 1.785 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.435e-05/0.1545, allocations: 15.92 kB / 353.7 MB, free: 1.77 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.252e-05/0.1546, allocations: 45.58 kB / 353.8 MB, free: 1.719 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001926/0.1548, allocations: 63.77 kB / 353.8 MB, free: 1.656 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.685e-06/0.1548, allocations: 0 / 353.8 MB, free: 1.656 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.766e-06/0.1548, allocations: 0 / 353.8 MB, free: 1.656 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.1548, allocations: 0 / 353.8 MB, free: 1.656 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007903/0.1556, allocations: 391.5 kB / 354.2 MB, free: 1.227 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.1557, allocations: 8.031 kB / 354.2 MB, free: 1.219 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.769e-05/0.1558, allocations: 4.938 kB / 354.2 MB, free: 1.215 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001541/0.1559, allocations: 176.2 kB / 354.4 MB, free: 1.004 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.091e-05/0.1559, allocations: 8.375 kB / 354.4 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.682e-05/0.156, allocations: 384 / 354.4 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003764/0.1564, allocations: 105.9 kB / 354.5 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.1564, allocations: 0 / 354.5 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.619e-05/0.1564, allocations: 0 / 354.5 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.1564, allocations: 0 / 354.5 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004524/0.1569, allocations: 99.92 kB / 354.6 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006261/0.1575, allocations: 316.6 kB / 354.9 MB, free: 440 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003473/0.1579, allocations: 90.5 kB / 355 MB, free: 340 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002291/0.1581, allocations: 52.95 kB / 355.1 MB, free: 284 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.812e-05/0.1582, allocations: 4 kB / 355.1 MB, free: 280 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.057e-05/0.1582, allocations: 34.56 kB / 355.1 MB, free: 236 kB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 1.413e-06/0.1582, allocations: 0 / 355.1 MB, free: 236 kB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.0006544/0.1589, allocations: 185.6 kB / 355.3 MB, free: 44 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.325e-05/0.1589, allocations: 51.41 kB / 355.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001032/0.1591, allocations: 117.8 kB / 355.5 MB, free: 15.86 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.79e-05/0.1591, allocations: 25.7 kB / 355.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.857e-05/0.1592, allocations: 99.97 kB / 355.6 MB, free: 15.72 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.921e-05/0.1592, allocations: 11.81 kB / 355.6 MB, free: 15.71 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.096e-05/0.1592, allocations: 17.72 kB / 355.6 MB, free: 15.69 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.1594, allocations: 322.7 kB / 355.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000164/0.1595, allocations: 43.97 kB / 356 MB, free: 15.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001612/0.1597, allocations: 51.95 kB / 356 MB, free: 15.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003192/0.16, allocations: 104.8 kB / 356.1 MB, free: 15.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.16, allocations: 0 / 356.1 MB, free: 15.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000374/0.1604, allocations: 141.5 kB / 356.3 MB, free: 15.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.1604, allocations: 4 kB / 356.3 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.1605, allocations: 0 / 356.3 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.1605, allocations: 448 / 356.3 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001485/0.1606, allocations: 31.97 kB / 356.3 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.229e-06/0.1606, allocations: 0 / 356.3 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.344e-05/0.1607, allocations: 23.92 kB / 356.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.914e-06/0.1608, allocations: 0 / 356.3 MB, free: 14.96 MB / 302.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 (5): * Single equations (assignments): 5 * 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 8.754e-05/0.1608, allocations: 117.8 kB / 356.4 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.752e-05/0.1609, allocations: 3.906 kB / 356.4 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000451/0.1613, allocations: 161.5 kB / 356.6 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.1614, allocations: 0 / 356.6 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.326e-06/0.1614, allocations: 0 / 356.6 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.1614, allocations: 0 / 356.6 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002491/0.1616, allocations: 189.6 kB / 356.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.1616, allocations: 0 / 356.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001239/0.1618, allocations: 27.97 kB / 356.8 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-06/0.1618, allocations: 0 / 356.8 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.433e-05/0.1618, allocations: 12 kB / 356.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1618, allocations: 0 / 356.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.1618, allocations: 0 / 356.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004823/0.1623, allocations: 247.3 kB / 357.1 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.395e-05/0.1624, allocations: 81.11 kB / 357.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.751e-05/0.1624, allocations: 0 / 357.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001207/0.1625, allocations: 23.98 kB / 357.2 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.256e-05/0.1626, allocations: 8.359 kB / 357.2 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.35e-06/0.1626, allocations: 0 / 357.2 MB, free: 14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.187e-05/0.1627, allocations: 95.2 kB / 357.3 MB, free: 13.91 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1627, allocations: 0 / 357.3 MB, free: 13.91 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002291/0.1629, allocations: 11.94 kB / 357.3 MB, free: 13.9 MB / 302.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 (7): * Single equations (assignments): 7 * 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.0001645/0.1631, allocations: 103.2 kB / 357.4 MB, free: 13.79 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003948/0.1635, allocations: 119.8 kB / 357.5 MB, free: 13.67 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.1635, allocations: 4 kB / 357.5 MB, free: 13.67 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000181/0.1637, allocations: 55.95 kB / 357.5 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002926/0.164, allocations: 8 kB / 357.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003773/0.1644, allocations: 190.5 kB / 357.7 MB, free: 13.39 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002551/0.1646, allocations: 0.6919 MB / 358.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.37e-05/0.1647, allocations: 4 kB / 358.4 MB, free: 12.67 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.507e-05/0.1647, allocations: 15.44 kB / 358.4 MB, free: 12.66 MB / 302.1 MB Notification: Performance of SimCode: time 2.255e-06/0.1647, allocations: 0 / 358.4 MB, free: 12.66 MB / 302.1 MB Notification: Performance of Templates: time 0.003125/0.1679, allocations: 0.7709 MB / 359.2 MB, free: 11.89 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.makefile (rm -f Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; mkfifo Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe >> ../files/Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.sim & ./Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/ComplexBlocks/Examples/TestConversionBlock/TestConversionBlock.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches