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.00114/0.00114, allocations: 109.6 kB / 16.51 MB, free: 6.707 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.001265/0.001265, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.335/1.335, allocations: 222.9 MB / 241.1 MB, free: 15.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001142/0.001142, allocations: 47.36 kB / 299.9 MB, free: 6.289 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09663/0.09779, allocations: 49.44 MB / 349.4 MB, free: 4.844 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.002782/0.1006, allocations: 1.573 MB / 351 MB, free: 3.254 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008036/0.1014, allocations: 494.7 kB / 351.4 MB, free: 2.766 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.74e-05/0.1015, allocations: 0 / 351.4 MB, free: 2.766 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001192/0.1016, allocations: 19.92 kB / 351.5 MB, free: 2.746 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.097e-05/0.1017, allocations: 11.92 kB / 351.5 MB, free: 2.734 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001714/0.1019, allocations: 31.98 kB / 351.5 MB, free: 2.703 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.358e-05/0.102, allocations: 51.78 kB / 351.5 MB, free: 2.652 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000112/0.1021, allocations: 16 kB / 351.6 MB, free: 2.637 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001605/0.1023, allocations: 31.89 kB / 351.6 MB, free: 2.605 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.113e-05/0.1024, allocations: 23.86 kB / 351.6 MB, free: 2.582 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.601e-05/0.1024, allocations: 4 kB / 351.6 MB, free: 2.578 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.078e-05/0.1025, allocations: 23.92 kB / 351.6 MB, free: 2.555 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.144e-05/0.1025, allocations: 12 kB / 351.7 MB, free: 2.543 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.03e-05/0.1025, allocations: 23.86 kB / 351.7 MB, free: 2.52 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001438/0.1027, allocations: 63.78 kB / 351.7 MB, free: 2.457 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.1027, allocations: 0 / 351.7 MB, free: 2.457 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.61e-07/0.1027, allocations: 0 / 351.7 MB, free: 2.457 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.477e-06/0.1027, allocations: 0 / 351.7 MB, free: 2.457 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.0006081/0.1033, allocations: 383.6 kB / 352.1 MB, free: 2.035 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.1034, allocations: 8.031 kB / 352.1 MB, free: 2.027 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.516e-05/0.1034, allocations: 12.84 kB / 352.1 MB, free: 2.016 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001124/0.1035, allocations: 184.2 kB / 352.3 MB, free: 1.797 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.25e-05/0.1035, allocations: 4.375 kB / 352.3 MB, free: 1.793 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.575e-05/0.1036, allocations: 4.375 kB / 352.3 MB, free: 1.789 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002815/0.1039, allocations: 85.95 kB / 352.4 MB, free: 1.699 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.502e-06/0.1039, allocations: 0 / 352.4 MB, free: 1.699 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.007e-05/0.1039, allocations: 0 / 352.4 MB, free: 1.699 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.1039, allocations: 4 kB / 352.4 MB, free: 1.695 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003171/0.1042, allocations: 79.92 kB / 352.5 MB, free: 1.617 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003883/0.1046, allocations: 316.6 kB / 352.8 MB, free: 1.258 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002516/0.1049, allocations: 74.53 kB / 352.9 MB, free: 1.176 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001584/0.105, allocations: 45.05 kB / 352.9 MB, free: 1.129 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.999e-05/0.1051, allocations: 3.938 kB / 352.9 MB, free: 1.125 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.322e-05/0.1051, allocations: 34.5 kB / 353 MB, free: 1.082 MB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 1.092e-06/0.1051, allocations: 0 / 353 MB, free: 1.082 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.0005686/0.1057, allocations: 157.5 kB / 353.1 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.378e-05/0.1057, allocations: 51.41 kB / 353.2 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.432e-05/0.1058, allocations: 109.8 kB / 353.3 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.534e-05/0.1058, allocations: 25.7 kB / 353.3 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.259e-05/0.1059, allocations: 96.06 kB / 353.4 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.621e-05/0.1059, allocations: 19.72 kB / 353.4 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.826e-05/0.106, allocations: 17.72 kB / 353.4 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.1061, allocations: 322.8 kB / 353.7 MB, free: 252 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001557/0.1063, allocations: 43.89 kB / 353.8 MB, free: 208 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001403/0.1064, allocations: 31.97 kB / 353.8 MB, free: 176 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000283/0.1067, allocations: 89.16 kB / 353.9 MB, free: 84 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.1067, allocations: 384 / 353.9 MB, free: 84 kB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003511/0.1071, allocations: 105.6 kB / 354 MB, free: 15.97 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.1071, allocations: 4 kB / 354 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.1071, allocations: 4 kB / 354 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.1071, allocations: 3.938 kB / 354 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001447/0.1073, allocations: 31.91 kB / 354 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.08e-06/0.1073, allocations: 0 / 354 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.395e-05/0.1074, allocations: 11.92 kB / 354.1 MB, free: 15.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.397e-06/0.1074, allocations: 4 kB / 354.1 MB, free: 15.91 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 7.538e-05/0.1075, allocations: 113.8 kB / 354.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.713e-05/0.1075, allocations: 7.906 kB / 354.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004148/0.1079, allocations: 137.5 kB / 354.3 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.1079, allocations: 0 / 354.3 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.1079, allocations: 0 / 354.3 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.108, allocations: 0 / 354.3 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002129/0.1082, allocations: 189.6 kB / 354.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.1082, allocations: 0 / 354.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001198/0.1083, allocations: 27.92 kB / 354.5 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.1083, allocations: 0 / 354.5 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.986e-06/0.1083, allocations: 0 / 354.5 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.1083, allocations: 0 / 354.5 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.1083, allocations: 0 / 354.5 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003984/0.1087, allocations: 231.2 kB / 354.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.006e-05/0.1088, allocations: 81.02 kB / 354.8 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.762e-05/0.1088, allocations: 4 kB / 354.8 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001116/0.1089, allocations: 7.984 kB / 354.8 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.087e-05/0.109, allocations: 11.98 kB / 354.9 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.34e-06/0.109, allocations: 0 / 354.9 MB, free: 15.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.076e-05/0.1091, allocations: 91.27 kB / 354.9 MB, free: 14.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.323e-06/0.1091, allocations: 0 / 354.9 MB, free: 14.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000351/0.1094, allocations: 19.88 kB / 355 MB, free: 14.91 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 0.0001257/0.1096, allocations: 107.2 kB / 355.1 MB, free: 14.79 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003485/0.1099, allocations: 91.97 kB / 355.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1099, allocations: 0 / 355.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001681/0.1101, allocations: 51.91 kB / 355.2 MB, free: 14.65 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004005/0.1105, allocations: 10.64 kB / 355.2 MB, free: 14.64 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003532/0.1109, allocations: 187.7 kB / 355.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000216/0.1111, allocations: 0.6926 MB / 356.1 MB, free: 13.71 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.579e-05/0.1112, allocations: 3.984 kB / 356.1 MB, free: 13.71 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.847e-05/0.1112, allocations: 11.44 kB / 356.1 MB, free: 13.7 MB / 302.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1112, allocations: 0 / 356.1 MB, free: 13.7 MB / 302.1 MB Notification: Performance of Templates: time 0.003004/0.1142, allocations: 0.7681 MB / 356.9 MB, free: 12.93 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/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