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.001423/0.001423, allocations: 110.5 kB / 17.06 MB, free: 6.113 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.001395/0.001395, allocations: 191 kB / 18 MB, free: 5.191 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.443/1.443, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00103/0.00103, allocations: 47.94 kB / 351.2 MB, free: 3.293 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3873/0.3883, allocations: 49.45 MB / 400.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.003314/0.3917, allocations: 1.51 MB / 402.2 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001039/0.3928, allocations: 0.5046 MB / 402.7 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.769e-05/0.3929, allocations: 0 / 402.7 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001435/0.393, allocations: 23.86 kB / 402.7 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.144e-05/0.3931, allocations: 3.938 kB / 402.7 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002031/0.3933, allocations: 35.91 kB / 402.8 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001118/0.3934, allocations: 63.77 kB / 402.8 MB, free: 6.73 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001428/0.3936, allocations: 19.98 kB / 402.9 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001417/0.3937, allocations: 27.91 kB / 402.9 MB, free: 6.684 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.578e-05/0.3938, allocations: 27.92 kB / 402.9 MB, free: 6.656 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.97e-05/0.3939, allocations: 8 kB / 402.9 MB, free: 6.648 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.153e-05/0.3939, allocations: 23.92 kB / 402.9 MB, free: 6.625 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.963e-05/0.394, allocations: 15.92 kB / 403 MB, free: 6.609 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.377e-05/0.394, allocations: 27.86 kB / 403 MB, free: 6.582 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000194/0.3942, allocations: 67.78 kB / 403 MB, free: 6.516 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.3942, allocations: 0 / 403 MB, free: 6.516 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3942, allocations: 0 / 403 MB, free: 6.516 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.3942, allocations: 0 / 403 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.0007721/0.395, allocations: 384.4 kB / 403.4 MB, free: 6.098 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/0.3951, allocations: 8.031 kB / 403.4 MB, free: 6.09 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.559e-05/0.3951, allocations: 8.875 kB / 403.4 MB, free: 6.082 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001503/0.3953, allocations: 176.2 kB / 403.6 MB, free: 5.871 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.356e-05/0.3953, allocations: 4.375 kB / 403.6 MB, free: 5.867 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.757e-05/0.3953, allocations: 4.375 kB / 403.6 MB, free: 5.863 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002789/0.3956, allocations: 85.95 kB / 403.7 MB, free: 5.773 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.3956, allocations: 7.938 kB / 403.7 MB, free: 5.766 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.38e-05/0.3956, allocations: 0 / 403.7 MB, free: 5.766 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.165e-06/0.3957, allocations: 4 kB / 403.7 MB, free: 5.762 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003443/0.396, allocations: 71.92 kB / 403.8 MB, free: 5.691 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005286/0.3965, allocations: 312.6 kB / 404.1 MB, free: 5.336 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002792/0.3968, allocations: 78.56 kB / 404.2 MB, free: 5.25 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001498/0.397, allocations: 44.95 kB / 404.2 MB, free: 5.203 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.084e-05/0.397, allocations: 0 / 404.2 MB, free: 5.203 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.158e-05/0.3971, allocations: 34.5 kB / 404.2 MB, free: 5.16 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 1.052e-06/0.3971, allocations: 4 kB / 404.2 MB, free: 5.156 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0005388/0.3976, allocations: 149.5 kB / 404.4 MB, free: 5.004 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.774e-05/0.3977, allocations: 51.41 kB / 404.4 MB, free: 4.941 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.133e-05/0.3978, allocations: 113.8 kB / 404.6 MB, free: 4.82 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.215e-05/0.3978, allocations: 25.7 kB / 404.6 MB, free: 4.789 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.079e-05/0.3978, allocations: 108 kB / 404.7 MB, free: 4.68 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.149e-05/0.3979, allocations: 11.81 kB / 404.7 MB, free: 4.668 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.672e-05/0.3979, allocations: 13.72 kB / 404.7 MB, free: 4.648 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.3981, allocations: 326.8 kB / 405 MB, free: 4.32 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001365/0.3982, allocations: 31.97 kB / 405.1 MB, free: 4.289 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001255/0.3983, allocations: 43.95 kB / 405.1 MB, free: 4.246 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002561/0.3986, allocations: 76.78 kB / 405.2 MB, free: 4.168 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3986, allocations: 0 / 405.2 MB, free: 4.168 MB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000306/0.3989, allocations: 117.5 kB / 405.3 MB, free: 4.047 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.3989, allocations: 8 kB / 405.3 MB, free: 4.039 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.269e-06/0.3989, allocations: 0 / 405.3 MB, free: 4.039 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/0.399, allocations: 448 / 405.3 MB, free: 4.039 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001293/0.3991, allocations: 19.97 kB / 405.3 MB, free: 4.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.3991, allocations: 4 kB / 405.3 MB, free: 4.016 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.478e-05/0.3992, allocations: 15.98 kB / 405.3 MB, free: 4 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.707e-06/0.3992, allocations: 4 kB / 405.3 MB, free: 3.996 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 7.825e-05/0.3993, allocations: 113.8 kB / 405.5 MB, free: 3.875 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.834e-05/0.3993, allocations: 8 kB / 405.5 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003559/0.3997, allocations: 133.4 kB / 405.6 MB, free: 3.727 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.3997, allocations: 0 / 405.6 MB, free: 3.727 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.217e-06/0.3997, allocations: 0 / 405.6 MB, free: 3.727 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.3997, allocations: 0 / 405.6 MB, free: 3.727 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000197/0.3999, allocations: 197.5 kB / 405.8 MB, free: 3.484 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.3999, allocations: 4 kB / 405.8 MB, free: 3.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000109/0.4, allocations: 23.97 kB / 405.8 MB, free: 3.457 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.4001, allocations: 3.938 kB / 405.8 MB, free: 3.453 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/0.4001, allocations: 384 / 405.8 MB, free: 3.453 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.4001, allocations: 0 / 405.8 MB, free: 3.453 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.4001, allocations: 0 / 405.8 MB, free: 3.453 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004305/0.4005, allocations: 231.3 kB / 406 MB, free: 3.211 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.475e-05/0.4006, allocations: 84.95 kB / 406.1 MB, free: 3.109 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.791e-05/0.4006, allocations: 4 kB / 406.1 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.741e-05/0.4007, allocations: 7.984 kB / 406.1 MB, free: 3.098 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.006e-05/0.4008, allocations: 11.98 kB / 406.2 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.3e-06/0.4008, allocations: 0 / 406.2 MB, free: 3.086 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.189e-05/0.4008, allocations: 91.27 kB / 406.2 MB, free: 2.996 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4009, allocations: 4 kB / 406.2 MB, free: 2.992 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002239/0.4011, allocations: 15.94 kB / 406.3 MB, free: 2.977 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.0001434/0.4012, allocations: 99.72 kB / 406.4 MB, free: 2.871 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003526/0.4016, allocations: 95.84 kB / 406.5 MB, free: 2.777 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4016, allocations: 0 / 406.5 MB, free: 2.777 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001476/0.4018, allocations: 43.97 kB / 406.5 MB, free: 2.734 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002962/0.4021, allocations: 7.984 kB / 406.5 MB, free: 2.727 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004013/0.4025, allocations: 158.1 kB / 406.7 MB, free: 2.547 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004516/0.4029, allocations: 0.6922 MB / 407.3 MB, free: 1.828 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.398e-05/0.403, allocations: 3.984 kB / 407.4 MB, free: 1.824 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.01e-05/0.403, allocations: 15.44 kB / 407.4 MB, free: 1.809 MB / 318.1 MB Notification: Performance of SimCode: time 2.11e-07/0.403, allocations: 0 / 407.4 MB, free: 1.809 MB / 318.1 MB Notification: Performance of Templates: time 0.00352/0.4065, allocations: 0.9208 MB / 408.3 MB, free: 0.8945 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