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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009474/0.0009474, allocations: 176.9 kB / 8.349 MB, free: 0.6953 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 221.5 MB / 230.3 MB, free: 3.285 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008078/0.0008076, allocations: 89.69 kB / 281.2 MB, free: 1.301 MB / 218.8 MB Notification: Performance of FrontEnd - loaded program: time 1.385e-05/1.382e-05, allocations: 0 / 337 MB, free: 9.406 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.2605, allocations: 50.4 MB / 387.4 MB, free: 38.2 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09469/0.3552, allocations: 75.86 MB / 463.3 MB, free: 10.98 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001804/0.3554, allocations: 73.06 kB / 463.4 MB, free: 10.91 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.003658/0.3591, allocations: 1.324 MB / 464.7 MB, free: 9.602 MB / 346.8 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3591, allocations: 0 / 464.7 MB, free: 9.602 MB / 346.8 MB Notification: Performance of Transformations before backend: time 7.203e-06/0.3591, allocations: 0 / 464.7 MB, free: 9.602 MB / 346.8 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.0004513/0.3596, allocations: 378.3 kB / 465.1 MB, free: 9.188 MB / 346.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.3596, allocations: 8.031 kB / 465.1 MB, free: 9.18 MB / 346.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.608e-05/0.3597, allocations: 10.95 kB / 465.1 MB, free: 9.172 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001262/0.3598, allocations: 177.5 kB / 465.2 MB, free: 8.961 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.548e-05/0.3599, allocations: 0 / 465.2 MB, free: 8.961 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.561e-05/0.3599, allocations: 4 kB / 465.3 MB, free: 8.957 MB / 346.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001188/0.36, allocations: 32 kB / 465.3 MB, free: 8.926 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001006/0.3601, allocations: 65.59 kB / 465.3 MB, free: 8.855 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/0.3601, allocations: 0 / 465.3 MB, free: 8.855 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.3601, allocations: 3.953 kB / 465.3 MB, free: 8.852 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.3602, allocations: 4 kB / 465.4 MB, free: 8.848 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003708/0.3605, allocations: 281.3 kB / 465.6 MB, free: 8.535 MB / 346.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001078/0.3606, allocations: 50.67 kB / 465.7 MB, free: 8.477 MB / 346.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.757e-05/0.3607, allocations: 20.92 kB / 465.7 MB, free: 8.453 MB / 346.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.842e-05/0.3607, allocations: 0 / 465.7 MB, free: 8.453 MB / 346.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.575e-05/0.3608, allocations: 34.52 kB / 465.7 MB, free: 8.41 MB / 346.8 MB Notification: Performance of pre-optimization done (n=5): time 8.12e-07/0.3608, allocations: 0 / 465.7 MB, free: 8.41 MB / 346.8 MB Notification: Performance of matching and sorting (n=5): time 0.0001691/0.3609, allocations: 61.69 kB / 465.8 MB, free: 8.344 MB / 346.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.128e-05/0.361, allocations: 55.41 kB / 465.8 MB, free: 8.277 MB / 346.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.946e-05/0.3611, allocations: 105.6 kB / 465.9 MB, free: 8.168 MB / 346.8 MB Notification: Performance of collectPreVariables (initialization): time 1.408e-05/0.3611, allocations: 25.7 kB / 466 MB, free: 8.137 MB / 346.8 MB Notification: Performance of collectInitialEqns (initialization): time 4.881e-05/0.3611, allocations: 96.03 kB / 466.1 MB, free: 8.039 MB / 346.8 MB Notification: Performance of collectInitialBindings (initialization): time 2.281e-05/0.3612, allocations: 15.75 kB / 466.1 MB, free: 8.023 MB / 346.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.581e-06/0.3612, allocations: 0 / 466.1 MB, free: 8.023 MB / 346.8 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.3613, allocations: 318.8 kB / 466.4 MB, free: 7.703 MB / 346.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.654e-05/0.3613, allocations: 15.94 kB / 466.4 MB, free: 7.688 MB / 346.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.431e-05/0.3614, allocations: 15.94 kB / 466.4 MB, free: 7.672 MB / 346.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.312e-05/0.3614, allocations: 20 kB / 466.4 MB, free: 7.652 MB / 346.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.3614, allocations: 0 / 466.4 MB, free: 7.652 MB / 346.8 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.376e-05/0.3615, allocations: 60.06 kB / 466.5 MB, free: 7.59 MB / 346.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/0.3615, allocations: 4 kB / 466.5 MB, free: 7.586 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.431e-06/0.3616, allocations: 3.953 kB / 466.5 MB, free: 7.582 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.979e-06/0.3616, allocations: 0 / 466.5 MB, free: 7.582 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001463/0.3617, allocations: 27.97 kB / 466.5 MB, free: 7.555 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.667e-06/0.3617, allocations: 0 / 466.5 MB, free: 7.555 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.892e-05/0.3618, allocations: 27.89 kB / 466.6 MB, free: 7.527 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.592e-06/0.3618, allocations: 0 / 466.6 MB, free: 7.527 MB / 346.8 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.368e-05/0.3619, allocations: 105 kB / 466.7 MB, free: 7.418 MB / 346.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.344e-05/0.362, allocations: 0 / 466.7 MB, free: 7.418 MB / 346.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001403/0.3621, allocations: 78.02 kB / 466.7 MB, free: 7.34 MB / 346.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.3621, allocations: 3.953 kB / 466.7 MB, free: 7.336 MB / 346.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.3621, allocations: 8 kB / 466.8 MB, free: 7.328 MB / 346.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/0.3621, allocations: 3.984 kB / 466.8 MB, free: 7.324 MB / 346.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001624/0.3623, allocations: 158.1 kB / 466.9 MB, free: 7.133 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.3623, allocations: 3.984 kB / 466.9 MB, free: 7.129 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001285/0.3624, allocations: 23.98 kB / 466.9 MB, free: 7.105 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.3625, allocations: 0 / 466.9 MB, free: 7.105 MB / 346.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.186e-06/0.3625, allocations: 0 / 466.9 MB, free: 7.105 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.3625, allocations: 0 / 466.9 MB, free: 7.105 MB / 346.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3625, allocations: 0 / 466.9 MB, free: 7.105 MB / 346.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001522/0.3626, allocations: 178.9 kB / 467.1 MB, free: 6.918 MB / 346.8 MB Notification: Performance of postOpt removeConstants (simulation): time 3.741e-05/0.3627, allocations: 93 kB / 467.2 MB, free: 6.809 MB / 346.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.51e-05/0.3627, allocations: 0 / 467.2 MB, free: 6.809 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001347/0.3629, allocations: 15.98 kB / 467.2 MB, free: 6.793 MB / 346.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.724e-05/0.3629, allocations: 3.984 kB / 467.2 MB, free: 6.789 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.292e-06/0.3629, allocations: 8 kB / 467.2 MB, free: 6.781 MB / 346.8 MB Notification: Performance of sorting global known variables: time 6.068e-05/0.363, allocations: 91.55 kB / 467.3 MB, free: 6.691 MB / 346.8 MB Notification: Performance of sort global known variables: time 1.8e-07/0.363, allocations: 0 / 467.3 MB, free: 6.691 MB / 346.8 MB Notification: Performance of remove unused functions: time 0.00022/0.3632, allocations: 19.94 kB / 467.3 MB, free: 6.672 MB / 346.8 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001261/0.3633, allocations: 103.2 kB / 467.4 MB, free: 6.559 MB / 346.8 MB Notification: Performance of simCode: created initialization part: time 0.0001068/0.3635, allocations: 35.94 kB / 467.5 MB, free: 6.523 MB / 346.8 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.3635, allocations: 11.94 kB / 467.5 MB, free: 6.512 MB / 346.8 MB Notification: Performance of simCode: created simulation system equations: time 4.233e-05/0.3635, allocations: 21.02 kB / 467.5 MB, free: 6.492 MB / 346.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001645/0.3637, allocations: 7.625 kB / 467.5 MB, free: 6.488 MB / 346.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002407/0.3639, allocations: 96.03 kB / 467.6 MB, free: 6.367 MB / 346.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002536/0.3642, allocations: 0.6885 MB / 468.3 MB, free: 5.652 MB / 346.8 MB Notification: Performance of simCode: alias equations: time 3.563e-05/0.3642, allocations: 8 kB / 468.3 MB, free: 5.645 MB / 346.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.868e-05/0.3643, allocations: 11.44 kB / 468.3 MB, free: 5.633 MB / 346.8 MB Notification: Performance of SimCode: time 2.61e-07/0.3643, allocations: 0 / 468.3 MB, free: 5.633 MB / 346.8 MB Notification: Performance of Templates: time 0.002418/0.3667, allocations: 0.6613 MB / 469 MB, free: 4.98 MB / 346.8 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","../files/Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches