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.0008752/0.0008753, allocations: 96.86 kB / 17.31 MB, free: 6.391 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.0009397/0.0009397, allocations: 177.2 kB / 18.21 MB, free: 5.551 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.252/1.252, allocations: 223.3 MB / 242.3 MB, free: 224 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002224/0.0002224, allocations: 11.92 kB / 302.1 MB, free: 6.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07213/0.07236, allocations: 50.41 MB / 352.5 MB, free: 3.738 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.001345/0.07375, allocations: 1.221 MB / 353.7 MB, free: 2.504 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006425/0.0744, allocations: 0.4916 MB / 354.2 MB, free: 2.008 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.111e-05/0.07445, allocations: 0 / 354.2 MB, free: 2.008 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.886e-05/0.07453, allocations: 15.97 kB / 354.2 MB, free: 1.992 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.679e-05/0.0746, allocations: 3.938 kB / 354.2 MB, free: 1.988 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001285/0.07473, allocations: 35.92 kB / 354.2 MB, free: 1.953 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 7.646e-05/0.07482, allocations: 55.84 kB / 354.3 MB, free: 1.898 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.597e-05/0.07491, allocations: 15.98 kB / 354.3 MB, free: 1.883 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.185e-05/0.07501, allocations: 27.86 kB / 354.3 MB, free: 1.855 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.496e-05/0.07507, allocations: 23.91 kB / 354.4 MB, free: 1.832 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.201e-05/0.07509, allocations: 0 / 354.4 MB, free: 1.832 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.546e-05/0.07515, allocations: 20 kB / 354.4 MB, free: 1.812 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.396e-05/0.07517, allocations: 7.922 kB / 354.4 MB, free: 1.805 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.107e-05/0.07522, allocations: 53.55 kB / 354.4 MB, free: 1.746 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.177e-05/0.07532, allocations: 35.92 kB / 354.5 MB, free: 1.711 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.07533, allocations: 0 / 354.5 MB, free: 1.711 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.07533, allocations: 3.938 kB / 354.5 MB, free: 1.707 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.026e-06/0.07534, allocations: 0 / 354.5 MB, free: 1.707 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.0005285/0.07587, allocations: 387.6 kB / 354.9 MB, free: 1.281 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.861e-05/0.07591, allocations: 8.031 kB / 354.9 MB, free: 1.273 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.124e-05/0.07595, allocations: 8.938 kB / 354.9 MB, free: 1.266 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.502e-05/0.07605, allocations: 176.2 kB / 355.1 MB, free: 1.055 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.229e-05/0.07607, allocations: 384 / 355.1 MB, free: 1.055 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.277e-05/0.07609, allocations: 8.375 kB / 355.1 MB, free: 1.047 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002732/0.07636, allocations: 97.89 kB / 355.2 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.694e-06/0.07638, allocations: 3.984 kB / 355.2 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.0764, allocations: 4 kB / 355.2 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.07641, allocations: 4 kB / 355.2 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003534/0.07677, allocations: 103.9 kB / 355.3 MB, free: 0.832 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003575/0.07714, allocations: 304.7 kB / 355.6 MB, free: 496 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002629/0.07741, allocations: 90.53 kB / 355.7 MB, free: 396 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001824/0.07761, allocations: 60.88 kB / 355.7 MB, free: 332 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.489e-05/0.07763, allocations: 3.938 kB / 355.7 MB, free: 328 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.156e-05/0.07766, allocations: 38.56 kB / 355.8 MB, free: 280 kB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 1.172e-06/0.07766, allocations: 0 / 355.8 MB, free: 280 kB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.000601/0.07827, allocations: 181.6 kB / 355.9 MB, free: 92 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.999e-05/0.07831, allocations: 55.41 kB / 356 MB, free: 24 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.465e-05/0.07839, allocations: 105.8 kB / 356.1 MB, free: 15.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.221e-05/0.07841, allocations: 29.7 kB / 356.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.913e-05/0.07846, allocations: 95.98 kB / 356.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.266e-05/0.07849, allocations: 19.8 kB / 356.2 MB, free: 15.76 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.451e-05/0.07852, allocations: 9.719 kB / 356.2 MB, free: 15.74 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.31e-05/0.07861, allocations: 318.8 kB / 356.6 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001797/0.07879, allocations: 51.95 kB / 356.6 MB, free: 15.37 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001655/0.07896, allocations: 44.22 kB / 356.7 MB, free: 15.33 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003359/0.07931, allocations: 104.9 kB / 356.8 MB, free: 15.22 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.07932, allocations: 0 / 356.8 MB, free: 15.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003869/0.07971, allocations: 145.5 kB / 356.9 MB, free: 15.07 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.05e-05/0.07973, allocations: 4 kB / 356.9 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.386e-06/0.07974, allocations: 4 kB / 356.9 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/0.07976, allocations: 4 kB / 356.9 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001372/0.0799, allocations: 19.98 kB / 356.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.907e-06/0.07991, allocations: 0 / 356.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.678e-05/0.08002, allocations: 23.92 kB / 356.9 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.111e-06/0.08003, allocations: 4 kB / 357 MB, free: 15.02 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 6.632e-05/0.0801, allocations: 117.8 kB / 357.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.005e-05/0.08014, allocations: 11.91 kB / 357.1 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004307/0.08058, allocations: 153.5 kB / 357.2 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.08059, allocations: 4 kB / 357.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.0806, allocations: 0 / 357.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.08061, allocations: 3.984 kB / 357.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000168/0.08078, allocations: 185.6 kB / 357.4 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.08079, allocations: 4 kB / 357.4 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001301/0.08093, allocations: 27.98 kB / 357.5 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.08094, allocations: 384 / 357.5 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.087e-05/0.08095, allocations: 0 / 357.5 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.584e-06/0.08096, allocations: 7.922 kB / 357.5 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.08097, allocations: 0 / 357.5 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004306/0.0814, allocations: 251.2 kB / 357.7 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.811e-05/0.08144, allocations: 77.11 kB / 357.8 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.494e-05/0.08146, allocations: 7.984 kB / 357.8 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001236/0.08159, allocations: 15.98 kB / 357.8 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.539e-05/0.08163, allocations: 7.984 kB / 357.8 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.201e-06/0.08165, allocations: 4 kB / 357.8 MB, free: 14.05 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.844e-05/0.08169, allocations: 83.28 kB / 357.9 MB, free: 13.97 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.0817, allocations: 0 / 357.9 MB, free: 13.97 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002362/0.08194, allocations: 19.94 kB / 357.9 MB, free: 13.95 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 9.224e-05/0.08204, allocations: 114.6 kB / 358 MB, free: 13.83 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003967/0.08244, allocations: 115.9 kB / 358.1 MB, free: 13.72 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.08245, allocations: 0 / 358.1 MB, free: 13.72 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001903/0.08265, allocations: 55.95 kB / 358.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002586/0.08292, allocations: 8 kB / 358.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003024/0.08323, allocations: 212.3 kB / 358.4 MB, free: 13.41 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001958/0.08343, allocations: 0.6926 MB / 359.1 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.825e-05/0.08348, allocations: 15.38 kB / 359.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.08349, allocations: 0 / 359.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of Templates: time 0.002023/0.08551, allocations: 0.9517 MB / 360.1 MB, free: 11.73 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/ComplexBlocks/Examples/TestConversionBlock/TestConversionBlock.csv","/var/lib/jenkins1/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