Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed") translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000841/0.0008411, allocations: 174.6 kB / 16.72 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.203/1.203, allocations: 205.4 MB / 222.9 MB, free: 9.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007416/0.000742, allocations: 86.36 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2783/0.2783, allocations: 43.56 MB / 363.1 MB, free: 51.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00031/0.0003101, allocations: 11.98 kB / 432 MB, free: 5.602 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09483/0.09515, allocations: 58.84 MB / 490.8 MB, free: 10.67 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.002399/0.09759, allocations: 2.213 MB / 493 MB, free: 8.445 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.000875/0.09849, allocations: 0.6634 MB / 493.7 MB, free: 7.773 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001037/0.0986, allocations: 7.938 kB / 493.7 MB, free: 7.766 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001158/0.09873, allocations: 23.78 kB / 493.7 MB, free: 7.742 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001238/0.09886, allocations: 71.39 kB / 493.8 MB, free: 7.672 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001751/0.09904, allocations: 67.86 kB / 493.9 MB, free: 7.605 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002927/0.09934, allocations: 314.6 kB / 494.2 MB, free: 7.297 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001452/0.0995, allocations: 69.8 kB / 494.2 MB, free: 7.23 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001462/0.09965, allocations: 107.6 kB / 494.3 MB, free: 7.125 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001358/0.09979, allocations: 111.5 kB / 494.4 MB, free: 7.016 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.198e-05/0.09984, allocations: 12 kB / 494.5 MB, free: 7.004 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.495e-05/0.09988, allocations: 15.94 kB / 494.5 MB, free: 6.988 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.82e-05/0.09992, allocations: 47.77 kB / 494.5 MB, free: 6.941 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001198/0.1, allocations: 153 kB / 494.7 MB, free: 6.785 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001835/0.1002, allocations: 207.7 kB / 494.9 MB, free: 6.582 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1002, allocations: 0 / 494.9 MB, free: 6.582 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1003, allocations: 0 / 494.9 MB, free: 6.582 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.1003, allocations: 4 kB / 494.9 MB, free: 6.578 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006887/0.101, allocations: 0.5493 MB / 495.4 MB, free: 5.984 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.861e-05/0.101, allocations: 8.031 kB / 495.4 MB, free: 5.977 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.346e-05/0.1011, allocations: 32.56 kB / 495.5 MB, free: 5.945 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002434/0.1013, allocations: 263.7 kB / 495.7 MB, free: 5.648 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.688e-05/0.1013, allocations: 16.94 kB / 495.7 MB, free: 5.633 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.39e-05/0.1014, allocations: 32.28 kB / 495.8 MB, free: 5.602 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004325/0.1018, allocations: 294.2 kB / 496.1 MB, free: 5.293 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.1019, allocations: 4 kB / 496.1 MB, free: 5.289 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.187e-05/0.1019, allocations: 12 kB / 496.1 MB, free: 5.277 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.1019, allocations: 4 kB / 496.1 MB, free: 5.273 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003864/0.1023, allocations: 199.8 kB / 496.3 MB, free: 5.078 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001438/0.1037, allocations: 1.325 MB / 497.6 MB, free: 3.648 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003724/0.1041, allocations: 258.4 kB / 497.9 MB, free: 3.359 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001865/0.1043, allocations: 107.5 kB / 498 MB, free: 3.242 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.163e-05/0.1043, allocations: 0 / 498 MB, free: 3.242 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.511e-05/0.1044, allocations: 42.56 kB / 498 MB, free: 3.191 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 2.585e-06/0.1044, allocations: 3.984 kB / 498 MB, free: 3.188 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.002309/0.1067, allocations: 1.627 MB / 499.6 MB, free: 1.352 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.019e-05/0.1068, allocations: 136.5 kB / 499.8 MB, free: 1.188 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001775/0.107, allocations: 220.9 kB / 500 MB, free: 0.957 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.473e-05/0.107, allocations: 37.7 kB / 0.4883 GB, free: 0.9141 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.991e-05/0.1071, allocations: 176.2 kB / 0.4885 GB, free: 0.7383 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.246e-05/0.1072, allocations: 122.3 kB / 0.4886 GB, free: 0.6172 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.196e-05/0.1072, allocations: 11.94 kB / 0.4886 GB, free: 0.6055 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.777e-05/0.1073, allocations: 334.8 kB / 0.4889 GB, free: 276 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002284/0.1075, allocations: 108.8 kB / 0.489 GB, free: 168 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.191/0.2986, allocations: 244.3 kB / 0.4892 GB, free: 42.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007564/0.2994, allocations: 390.1 kB / 0.4896 GB, free: 42.45 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.2994, allocations: 2.875 kB / 0.4896 GB, free: 42.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008334/0.3002, allocations: 416.2 kB / 0.49 GB, free: 42.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.3003, allocations: 6.312 kB / 0.49 GB, free: 42.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/0.3003, allocations: 8.594 kB / 0.49 GB, free: 42.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.835e-05/0.3003, allocations: 6.188 kB / 0.49 GB, free: 42.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003591/0.3007, allocations: 101.9 kB / 0.4901 GB, free: 42.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.575e-05/0.3007, allocations: 11.89 kB / 0.4901 GB, free: 42.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002339/0.301, allocations: 36.42 kB / 0.4902 GB, free: 42.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.556e-05/0.301, allocations: 18.27 kB / 0.4902 GB, free: 42.4 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (48): * Single equations (assignments): 48 * 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 0.0001787/0.3012, allocations: 148.9 kB / 0.4903 GB, free: 42.28 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001095/0.3013, allocations: 31.48 kB / 0.4904 GB, free: 42.28 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.115e-05/0.3014, allocations: 37.42 kB / 0.4904 GB, free: 42.28 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.3014, allocations: 4.25 kB / 0.4904 GB, free: 42.28 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.3014, allocations: 5.578 kB / 0.4904 GB, free: 42.28 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.3014, allocations: 2.578 kB / 0.4904 GB, free: 42.28 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001392/0.3028, allocations: 1.011 MB / 0.4914 GB, free: 41.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.3028, allocations: 5.641 kB / 0.4914 GB, free: 41.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003389/0.3032, allocations: 84.41 kB / 0.4915 GB, free: 41.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/0.3032, allocations: 2.938 kB / 0.4915 GB, free: 41.72 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.644e-05/0.3032, allocations: 8.203 kB / 0.4915 GB, free: 41.72 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.3033, allocations: 3.156 kB / 0.4915 GB, free: 41.72 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.3033, allocations: 8.844 kB / 0.4915 GB, free: 41.71 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000964/0.3042, allocations: 0.7619 MB / 0.4923 GB, free: 41.33 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.154e-05/0.3043, allocations: 101.9 kB / 0.4924 GB, free: 41.23 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.175e-05/0.3044, allocations: 9.031 kB / 0.4924 GB, free: 41.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002684/0.3046, allocations: 28.03 kB / 0.4924 GB, free: 41.23 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.76e-05/0.3047, allocations: 28.95 kB / 0.4924 GB, free: 41.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.952e-05/0.3047, allocations: 11.95 kB / 0.4924 GB, free: 41.23 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001456/0.3049, allocations: 154.6 kB / 0.4926 GB, free: 41.15 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.02e-07/0.3049, allocations: 0 / 0.4926 GB, free: 41.15 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000529/0.3054, allocations: 70.09 kB / 0.4926 GB, free: 41.15 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * 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 (32): * Single equations (assignments): 32 * 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.0001199/0.3056, allocations: 112.4 kB / 0.4928 GB, free: 41.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006762/0.3062, allocations: 294.8 kB / 0.493 GB, free: 41.04 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.3063, allocations: 1.75 kB / 0.493 GB, free: 41.04 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002949/0.3066, allocations: 150.8 kB / 0.4932 GB, free: 41.02 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006638/0.3072, allocations: 36.02 kB / 0.4932 GB, free: 41.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001469/0.3087, allocations: 1.1 MB / 0.4943 GB, free: 40.32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002564/0.309, allocations: 0.7711 MB / 0.495 GB, free: 39.61 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001289/0.3091, allocations: 28.48 kB / 0.4951 GB, free: 39.61 MB / 378.7 MB Notification: Performance of SimCode: time 5.71e-07/0.3091, allocations: 0 / 0.4951 GB, free: 39.61 MB / 378.7 MB Notification: Performance of Templates: time 0.006297/0.3154, allocations: 3.268 MB / 0.4983 GB, free: 39.36 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches