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.001363/0.001363, allocations: 179.2 kB / 16.41 MB, free: 5.707 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.503/1.503, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.0008909/0.000891, allocations: 91.95 kB / 270.9 MB, free: 8.359 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.3218/0.3218, allocations: 43.56 MB / 362.7 MB, free: 52.05 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003639/0.0003641, allocations: 12 kB / 431.4 MB, free: 6.156 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1115, allocations: 58.84 MB / 490.2 MB, free: 11.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.002727/0.1143, allocations: 2.197 MB / 492.4 MB, free: 9.02 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001157/0.1155, allocations: 0.6711 MB / 493.1 MB, free: 8.34 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001421/0.1156, allocations: 8 kB / 493.1 MB, free: 8.332 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001307/0.1158, allocations: 35.7 kB / 493.1 MB, free: 8.297 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001638/0.1159, allocations: 63.41 kB / 493.2 MB, free: 8.234 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002455/0.1162, allocations: 67.91 kB / 493.3 MB, free: 8.168 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003079/0.1165, allocations: 306.6 kB / 493.6 MB, free: 7.867 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001624/0.1167, allocations: 65.56 kB / 493.6 MB, free: 7.801 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001642/0.1168, allocations: 107.6 kB / 493.7 MB, free: 7.695 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000152/0.117, allocations: 115.5 kB / 493.8 MB, free: 7.582 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.556e-05/0.117, allocations: 12 kB / 493.9 MB, free: 7.57 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.791e-05/0.1171, allocations: 15.94 kB / 493.9 MB, free: 7.555 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.003e-05/0.1171, allocations: 39.84 kB / 493.9 MB, free: 7.516 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.561e-05/0.1172, allocations: 81.52 kB / 494 MB, free: 7.43 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002238/0.1174, allocations: 215.6 kB / 494.2 MB, free: 7.219 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.1175, allocations: 0 / 494.2 MB, free: 7.219 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1175, allocations: 0 / 494.2 MB, free: 7.219 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.772e-06/0.1175, allocations: 0 / 494.2 MB, free: 7.219 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.0008172/0.1183, allocations: 0.5417 MB / 494.7 MB, free: 6.629 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.1184, allocations: 19.95 kB / 494.8 MB, free: 6.609 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.362e-05/0.1184, allocations: 31.62 kB / 494.8 MB, free: 6.578 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002918/0.1187, allocations: 254.5 kB / 495 MB, free: 6.289 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.138e-05/0.1188, allocations: 16.56 kB / 495.1 MB, free: 6.273 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.212e-05/0.1188, allocations: 35.98 kB / 495.1 MB, free: 6.238 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004964/0.1193, allocations: 281.9 kB / 495.4 MB, free: 5.941 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.02e-05/0.1194, allocations: 7.859 kB / 495.4 MB, free: 5.934 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.363e-05/0.1194, allocations: 12 kB / 495.4 MB, free: 5.922 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.1194, allocations: 8 kB / 495.4 MB, free: 5.914 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004336/0.1198, allocations: 207.7 kB / 495.6 MB, free: 5.711 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001648/0.1215, allocations: 1.321 MB / 496.9 MB, free: 4.285 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004155/0.1219, allocations: 254.3 kB / 497.2 MB, free: 4 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002026/0.1222, allocations: 107.4 kB / 497.3 MB, free: 3.883 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.667e-05/0.1222, allocations: 8.125 kB / 497.3 MB, free: 3.875 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.625e-05/0.1222, allocations: 38.55 kB / 497.3 MB, free: 3.828 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 1.473e-06/0.1222, allocations: 4 kB / 497.3 MB, free: 3.824 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.0027/0.125, allocations: 1.628 MB / 499 MB, free: 1.988 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.363e-05/0.125, allocations: 136.5 kB / 499.1 MB, free: 1.824 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002183/0.1253, allocations: 213.3 kB / 499.3 MB, free: 1.602 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.699e-05/0.1253, allocations: 37.69 kB / 499.3 MB, free: 1.559 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001157/0.1254, allocations: 176.3 kB / 499.5 MB, free: 1.383 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.583e-05/0.1255, allocations: 122.2 kB / 499.6 MB, free: 1.262 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.323e-05/0.1256, allocations: 4 kB / 499.6 MB, free: 1.258 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.1257, allocations: 342.8 kB / 500 MB, free: 0.9141 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002595/0.126, allocations: 112.8 kB / 0.4883 GB, free: 0.8047 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003763/0.1263, allocations: 253.4 kB / 0.4886 GB, free: 0.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003102/0.1267, allocations: 144.2 kB / 0.4887 GB, free: 368 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.1267, allocations: 4 kB / 0.4887 GB, free: 364 kB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.1887/0.3153, allocations: 403.4 kB / 0.4891 GB, free: 42.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.331e-05/0.3154, allocations: 12.44 kB / 0.4891 GB, free: 42.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.572e-05/0.3155, allocations: 5.703 kB / 0.4891 GB, free: 42.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.119e-05/0.3155, allocations: 11.97 kB / 0.4891 GB, free: 42.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004787/0.316, allocations: 105.5 kB / 0.4892 GB, free: 42.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.648e-05/0.316, allocations: 11.66 kB / 0.4893 GB, free: 42.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002963/0.3163, allocations: 33.47 kB / 0.4893 GB, free: 42.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.146e-05/0.3163, allocations: 17.61 kB / 0.4893 GB, free: 42.59 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.0001534/0.3165, allocations: 147.4 kB / 0.4894 GB, free: 42.48 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.3166, allocations: 33.58 kB / 0.4895 GB, free: 42.48 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.864e-05/0.3167, allocations: 33.41 kB / 0.4895 GB, free: 42.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-06/0.3167, allocations: 7.188 kB / 0.4895 GB, free: 42.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.285e-06/0.3167, allocations: 2.062 kB / 0.4895 GB, free: 42.48 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.295e-06/0.3167, allocations: 5.531 kB / 0.4895 GB, free: 42.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001509/0.3183, allocations: 1.006 MB / 0.4905 GB, free: 41.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.3183, allocations: 1.719 kB / 0.4905 GB, free: 41.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003771/0.3187, allocations: 90.8 kB / 0.4906 GB, free: 41.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.621e-06/0.3187, allocations: 2.969 kB / 0.4906 GB, free: 41.95 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.32e-05/0.3187, allocations: 7.438 kB / 0.4906 GB, free: 41.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.3187, allocations: 2.375 kB / 0.4906 GB, free: 41.95 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.3187, allocations: 2.828 kB / 0.4906 GB, free: 41.95 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009433/0.3197, allocations: 0.7685 MB / 0.4914 GB, free: 41.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.474e-05/0.3197, allocations: 97.75 kB / 0.4915 GB, free: 41.48 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.739e-05/0.3198, allocations: 10.25 kB / 0.4915 GB, free: 41.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002931/0.3201, allocations: 25.16 kB / 0.4915 GB, free: 41.48 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.12e-05/0.3202, allocations: 22.81 kB / 0.4915 GB, free: 41.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.908e-05/0.3202, allocations: 18.38 kB / 0.4915 GB, free: 41.48 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00013/0.3203, allocations: 154.9 kB / 0.4917 GB, free: 41.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3203, allocations: 4.688 kB / 0.4917 GB, free: 41.41 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004364/0.3208, allocations: 68.8 kB / 0.4917 GB, free: 41.4 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 9.711e-05/0.3209, allocations: 103.8 kB / 0.4918 GB, free: 41.32 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006899/0.3216, allocations: 297 kB / 0.4921 GB, free: 41.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3216, allocations: 0 / 0.4921 GB, free: 41.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003005/0.3219, allocations: 147.2 kB / 0.4923 GB, free: 41.29 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006149/0.3225, allocations: 37.84 kB / 0.4923 GB, free: 41.29 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00146/0.324, allocations: 1.107 MB / 0.4934 GB, free: 40.59 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002634/0.3243, allocations: 0.7702 MB / 0.4941 GB, free: 39.88 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.149e-05/0.3244, allocations: 28.19 kB / 0.4942 GB, free: 39.87 MB / 378.7 MB Notification: Performance of SimCode: time 4.41e-07/0.3244, allocations: 1.688 kB / 0.4942 GB, free: 39.87 MB / 378.7 MB Notification: Performance of Templates: time 0.005161/0.3295, allocations: 3.27 MB / 0.4974 GB, free: 39.62 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