Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock") translateModel(Modelica.ComplexBlocks.Examples.TestConversionBlock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2020,variableFilter="time|len.y|phi.y",fileNamePrefix="Modelica_3.2.3_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.001099/0.001099, allocations: 93.42 kB / 17.3 MB, free: 6.395 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.001623/0.001623, allocations: 172.5 kB / 18.2 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.916/1.916, allocations: 205.4 MB / 224.4 MB, free: 13.06 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006949/0.0006948, allocations: 12 kB / 281.4 MB, free: 3.414 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1372, allocations: 47.57 MB / 328.9 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.002068/0.1394, allocations: 1.222 MB / 330.2 MB, free: 2.531 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001175/0.1406, allocations: 0.5316 MB / 330.7 MB, free: 1.992 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.019e-05/0.1407, allocations: 0 / 330.7 MB, free: 1.992 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001416/0.1408, allocations: 11.94 kB / 330.7 MB, free: 1.98 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001033/0.141, allocations: 11.92 kB / 330.7 MB, free: 1.969 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002111/0.1412, allocations: 31.97 kB / 330.7 MB, free: 1.938 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001087/0.1413, allocations: 51.84 kB / 330.8 MB, free: 1.887 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001264/0.1414, allocations: 16 kB / 330.8 MB, free: 1.871 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001414/0.1416, allocations: 23.91 kB / 330.8 MB, free: 1.848 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.409e-05/0.1417, allocations: 31.84 kB / 330.9 MB, free: 1.816 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.687e-05/0.1417, allocations: 4 kB / 330.9 MB, free: 1.812 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.014e-05/0.1418, allocations: 11.94 kB / 330.9 MB, free: 1.801 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.078e-05/0.1418, allocations: 11.92 kB / 330.9 MB, free: 1.789 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.03e-05/0.1419, allocations: 45.58 kB / 330.9 MB, free: 1.738 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001566/0.142, allocations: 63.83 kB / 331 MB, free: 1.676 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.142, allocations: 0 / 331 MB, free: 1.676 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.142, allocations: 4 kB / 331 MB, free: 1.672 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.042e-06/0.1421, allocations: 0 / 331 MB, free: 1.672 MB / 270.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.0007573/0.1428, allocations: 379.6 kB / 331.4 MB, free: 1.254 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.292e-05/0.1429, allocations: 8.031 kB / 331.4 MB, free: 1.246 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.041e-05/0.1429, allocations: 12.84 kB / 331.4 MB, free: 1.234 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001732/0.1431, allocations: 180.1 kB / 331.6 MB, free: 1.02 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.657e-05/0.1432, allocations: 4.375 kB / 331.6 MB, free: 1.016 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.829e-05/0.1432, allocations: 4.375 kB / 331.6 MB, free: 1.012 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003328/0.1435, allocations: 97.95 kB / 331.7 MB, free: 0.9102 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.261e-05/0.1436, allocations: 7.984 kB / 331.7 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.474e-05/0.1436, allocations: 0 / 331.7 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.543e-06/0.1436, allocations: 0 / 331.7 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003587/0.144, allocations: 103.9 kB / 331.8 MB, free: 0.8008 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005692/0.1445, allocations: 312.6 kB / 332.1 MB, free: 456 kB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003165/0.1449, allocations: 86.53 kB / 332.2 MB, free: 360 kB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001892/0.1451, allocations: 60.97 kB / 332.2 MB, free: 296 kB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.92e-05/0.1451, allocations: 4 kB / 332.2 MB, free: 292 kB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.778e-05/0.1451, allocations: 30.56 kB / 332.3 MB, free: 252 kB / 270.1 MB Notification: Performance of pre-optimization done (n=5): time 4.268e-06/0.1451, allocations: 3.984 kB / 332.3 MB, free: 248 kB / 270.1 MB Notification: Performance of matching and sorting (n=5): time 0.0006707/0.1458, allocations: 177.6 kB / 332.4 MB, free: 64 kB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.171e-05/0.1459, allocations: 55.41 kB / 332.5 MB, free: 16 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000132/0.146, allocations: 113.8 kB / 332.6 MB, free: 15.88 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.17e-05/0.1461, allocations: 25.7 kB / 332.6 MB, free: 15.84 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.922e-05/0.1462, allocations: 96.03 kB / 332.7 MB, free: 15.75 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.744e-05/0.1462, allocations: 7.812 kB / 332.7 MB, free: 15.74 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.754e-05/0.1463, allocations: 17.72 kB / 332.8 MB, free: 15.71 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.1464, allocations: 322.7 kB / 333.1 MB, free: 15.39 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001773/0.1466, allocations: 47.97 kB / 333.1 MB, free: 15.34 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001662/0.1468, allocations: 47.95 kB / 333.2 MB, free: 15.3 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003462/0.1471, allocations: 109.2 kB / 333.3 MB, free: 15.19 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.1472, allocations: 0 / 333.3 MB, free: 15.19 MB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0004211/0.1476, allocations: 141.9 kB / 333.4 MB, free: 15.04 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.261e-05/0.1476, allocations: 4 kB / 333.4 MB, free: 15.04 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.1476, allocations: 0 / 333.4 MB, free: 15.04 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.018e-05/0.1477, allocations: 0 / 333.4 MB, free: 15.04 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001538/0.1478, allocations: 31.86 kB / 333.4 MB, free: 15.01 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.898e-06/0.1478, allocations: 0 / 333.4 MB, free: 15.01 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.477e-05/0.1479, allocations: 31.84 kB / 333.5 MB, free: 14.98 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.284e-06/0.148, allocations: 0 / 333.5 MB, free: 14.98 MB / 286.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 9.459e-05/0.1481, allocations: 117.8 kB / 333.6 MB, free: 14.85 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.446e-05/0.1481, allocations: 0 / 333.6 MB, free: 14.85 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000436/0.1485, allocations: 157.5 kB / 333.7 MB, free: 14.69 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.1485, allocations: 0 / 333.7 MB, free: 14.69 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.1485, allocations: 0 / 333.7 MB, free: 14.69 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.1486, allocations: 4 kB / 333.8 MB, free: 14.69 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002058/0.1488, allocations: 189.6 kB / 333.9 MB, free: 14.45 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.1488, allocations: 0 / 333.9 MB, free: 14.45 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001391/0.1489, allocations: 31.91 kB / 334 MB, free: 14.42 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.1489, allocations: 0 / 334 MB, free: 14.42 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/0.149, allocations: 8 kB / 334 MB, free: 14.41 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.149, allocations: 0 / 334 MB, free: 14.41 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.149, allocations: 0 / 334 MB, free: 14.41 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004437/0.1494, allocations: 243.5 kB / 334.2 MB, free: 14.16 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.263e-05/0.1495, allocations: 85.02 kB / 334.3 MB, free: 14.06 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.669e-05/0.1495, allocations: 0 / 334.3 MB, free: 14.06 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001146/0.1496, allocations: 19.98 kB / 334.3 MB, free: 14.04 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.877e-05/0.1497, allocations: 7.984 kB / 334.3 MB, free: 14.03 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.99e-06/0.1497, allocations: 0 / 334.3 MB, free: 14.03 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.268e-05/0.1497, allocations: 95.27 kB / 334.4 MB, free: 13.94 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1498, allocations: 3.938 kB / 334.4 MB, free: 13.93 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002238/0.15, allocations: 11.94 kB / 334.4 MB, free: 13.92 MB / 286.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.0001396/0.1501, allocations: 99.25 kB / 334.5 MB, free: 13.82 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003998/0.1505, allocations: 107.9 kB / 334.6 MB, free: 13.71 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.1505, allocations: 0 / 334.6 MB, free: 13.71 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001923/0.1507, allocations: 63.89 kB / 334.7 MB, free: 13.65 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003314/0.1511, allocations: 8.281 kB / 334.7 MB, free: 13.64 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004782/0.1516, allocations: 198.4 kB / 334.9 MB, free: 13.42 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003602/0.152, allocations: 0.6887 MB / 335.6 MB, free: 12.71 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.816e-05/0.152, allocations: 7.984 kB / 335.6 MB, free: 12.7 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.946e-05/0.152, allocations: 11.44 kB / 335.6 MB, free: 12.69 MB / 286.1 MB Notification: Performance of SimCode: time 1.082e-06/0.1521, allocations: 0 / 335.6 MB, free: 12.69 MB / 286.1 MB Notification: Performance of Templates: time 0.003405/0.1555, allocations: 0.7607 MB / 336.4 MB, free: 11.93 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.makefile (rm -f Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; mkfifo Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe >> ../files/Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.sim & ./Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/ComplexBlocks/Examples/TestConversionBlock/TestConversionBlock.csv","../files/Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches