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.001305/0.001305, allocations: 97.03 kB / 17.06 MB, free: 6.121 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.001359/0.001359, allocations: 194.9 kB / 17.99 MB, free: 5.199 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.482/1.482, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001132, allocations: 51.92 kB / 351.3 MB, free: 3.309 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3457/0.3468, allocations: 49.43 MB / 400.7 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.00309/0.35, allocations: 1.512 MB / 402.2 MB, free: 7.371 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009631/0.351, allocations: 0.5008 MB / 402.7 MB, free: 6.867 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.55e-05/0.351, allocations: 0 / 402.7 MB, free: 6.867 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001325/0.3512, allocations: 19.88 kB / 402.7 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.875e-05/0.3513, allocations: 15.86 kB / 402.7 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002058/0.3515, allocations: 31.91 kB / 402.8 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001036/0.3516, allocations: 55.84 kB / 402.8 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001377/0.3518, allocations: 23.98 kB / 402.8 MB, free: 6.723 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001355/0.3519, allocations: 31.86 kB / 402.9 MB, free: 6.691 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.989e-05/0.352, allocations: 31.89 kB / 402.9 MB, free: 6.66 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.809e-05/0.352, allocations: 4 kB / 402.9 MB, free: 6.656 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.49e-05/0.3521, allocations: 16 kB / 402.9 MB, free: 6.641 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.398e-05/0.3521, allocations: 15.92 kB / 402.9 MB, free: 6.625 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.163e-05/0.3522, allocations: 23.86 kB / 403 MB, free: 6.602 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002027/0.3524, allocations: 75.72 kB / 403 MB, free: 6.527 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.3524, allocations: 3.938 kB / 403 MB, free: 6.523 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3524, allocations: 4 kB / 403.1 MB, free: 6.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.745e-06/0.3524, allocations: 4 kB / 403.1 MB, free: 6.516 MB / 318.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.0007816/0.3532, allocations: 375.1 kB / 403.4 MB, free: 6.105 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.195e-05/0.3533, allocations: 12.03 kB / 403.4 MB, free: 6.094 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.781e-05/0.3533, allocations: 0.9375 kB / 403.4 MB, free: 6.094 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001547/0.3535, allocations: 173.5 kB / 403.6 MB, free: 5.887 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.203e-05/0.3535, allocations: 4.375 kB / 403.6 MB, free: 5.883 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.215e-05/0.3535, allocations: 8.375 kB / 403.6 MB, free: 5.875 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003032/0.3539, allocations: 89.89 kB / 403.7 MB, free: 5.781 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.3539, allocations: 7.984 kB / 403.7 MB, free: 5.773 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.385e-05/0.3539, allocations: 0 / 403.7 MB, free: 5.773 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/0.3539, allocations: 3.984 kB / 403.7 MB, free: 5.77 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003331/0.3542, allocations: 79.92 kB / 403.8 MB, free: 5.691 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005224/0.3548, allocations: 312.6 kB / 404.1 MB, free: 5.336 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002684/0.3551, allocations: 70.53 kB / 404.2 MB, free: 5.258 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001695/0.3552, allocations: 48.94 kB / 404.2 MB, free: 5.207 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.927e-05/0.3553, allocations: 3.938 kB / 404.2 MB, free: 5.203 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.867e-05/0.3553, allocations: 34.56 kB / 404.3 MB, free: 5.16 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 1.153e-06/0.3553, allocations: 0 / 404.3 MB, free: 5.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0006004/0.3559, allocations: 149.6 kB / 404.4 MB, free: 5.008 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.39e-05/0.356, allocations: 55.41 kB / 404.5 MB, free: 4.941 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.755e-05/0.3561, allocations: 110.1 kB / 404.6 MB, free: 4.824 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.894e-05/0.3561, allocations: 29.7 kB / 404.6 MB, free: 4.789 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.898e-05/0.3562, allocations: 95.97 kB / 404.7 MB, free: 4.691 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.541e-05/0.3562, allocations: 11.91 kB / 404.7 MB, free: 4.68 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.805e-05/0.3562, allocations: 21.66 kB / 404.7 MB, free: 4.652 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.3564, allocations: 322.8 kB / 405 MB, free: 4.328 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001516/0.3565, allocations: 35.97 kB / 405.1 MB, free: 4.293 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001398/0.3567, allocations: 39.95 kB / 405.1 MB, free: 4.254 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002834/0.357, allocations: 80.72 kB / 405.2 MB, free: 4.172 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.357, allocations: 4 kB / 405.2 MB, free: 4.168 MB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003319/0.3573, allocations: 114 kB / 405.3 MB, free: 4.051 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.3573, allocations: 4 kB / 405.3 MB, free: 4.047 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.3573, allocations: 0 / 405.3 MB, free: 4.047 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.3574, allocations: 4 kB / 405.3 MB, free: 4.043 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/0.3575, allocations: 19.97 kB / 405.3 MB, free: 4.023 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.197e-05/0.3575, allocations: 4 kB / 405.3 MB, free: 4.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.236e-05/0.3576, allocations: 15.98 kB / 405.3 MB, free: 4.004 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.358e-06/0.3576, allocations: 0 / 405.3 MB, free: 4.004 MB / 318.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 0.0001155/0.3578, allocations: 121.7 kB / 405.5 MB, free: 3.875 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.557e-05/0.3578, allocations: 0 / 405.5 MB, free: 3.875 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004245/0.3582, allocations: 137.5 kB / 405.6 MB, free: 3.73 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.3582, allocations: 0 / 405.6 MB, free: 3.73 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.3583, allocations: 4 kB / 405.6 MB, free: 3.727 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.3583, allocations: 0 / 405.6 MB, free: 3.727 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002191/0.3585, allocations: 189.5 kB / 405.8 MB, free: 3.492 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.3585, allocations: 0 / 405.8 MB, free: 3.492 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001185/0.3586, allocations: 27.97 kB / 405.8 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.3586, allocations: 0 / 405.8 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.3586, allocations: 0 / 405.8 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.3587, allocations: 4 kB / 405.8 MB, free: 3.461 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.3587, allocations: 11.88 kB / 405.8 MB, free: 3.449 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004106/0.3591, allocations: 211.4 kB / 406 MB, free: 3.227 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.922e-05/0.3591, allocations: 85.02 kB / 406.1 MB, free: 3.125 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.989e-05/0.3592, allocations: 4 kB / 406.1 MB, free: 3.121 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001109/0.3593, allocations: 15.98 kB / 406.1 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.054e-05/0.3593, allocations: 3.984 kB / 406.1 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.953e-06/0.3593, allocations: 4 kB / 406.1 MB, free: 3.098 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.694e-05/0.3594, allocations: 95.2 kB / 406.2 MB, free: 3.004 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3594, allocations: 0 / 406.2 MB, free: 3.004 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002383/0.3597, allocations: 15.94 kB / 406.3 MB, free: 2.988 MB / 318.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.0001423/0.3598, allocations: 103.7 kB / 406.4 MB, free: 2.879 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003932/0.3602, allocations: 91.84 kB / 406.4 MB, free: 2.789 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3602, allocations: 0 / 406.4 MB, free: 2.789 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001666/0.3604, allocations: 47.95 kB / 406.5 MB, free: 2.742 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000346/0.3607, allocations: 4 kB / 406.5 MB, free: 2.738 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003944/0.3612, allocations: 162 kB / 406.7 MB, free: 2.555 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002799/0.3614, allocations: 0.6922 MB / 407.3 MB, free: 1.836 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.629e-05/0.3615, allocations: 4 kB / 407.4 MB, free: 1.832 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.833e-05/0.3615, allocations: 11.44 kB / 407.4 MB, free: 1.82 MB / 318.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3615, allocations: 0 / 407.4 MB, free: 1.82 MB / 318.1 MB Notification: Performance of Templates: time 0.003417/0.365, allocations: 0.9241 MB / 408.3 MB, free: 0.9023 MB / 318.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