Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_ModelicaTest.Rotational.TestSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009766/0.0009763, allocations: 202.9 kB / 15.8 MB, free: 6.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.275/1.275, allocations: 226.6 MB / 243.1 MB, free: 14.27 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007227/0.0007225, allocations: 100.2 kB / 295.1 MB, free: 10.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.197/0.197, allocations: 44.84 MB / 392 MB, free: 9.324 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002368/0.0002368, allocations: 8 kB / 464.7 MB, free: 49.77 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09707/0.09732, allocations: 62.95 MB / 0.5153 GB, free: 2.777 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.002593/0.09996, allocations: 2.215 MB / 0.5175 GB, free: 0.543 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.187/0.287, allocations: 0.6418 MB / 0.5181 GB, free: 9.812 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002665/0.2873, allocations: 7.5 kB / 0.5181 GB, free: 9.812 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001416/0.2875, allocations: 32.25 kB / 0.5181 GB, free: 9.812 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001821/0.2877, allocations: 74.33 kB / 0.5182 GB, free: 9.812 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002903/0.288, allocations: 63.17 kB / 0.5183 GB, free: 9.812 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003851/0.2883, allocations: 309 kB / 0.5186 GB, free: 9.746 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000199/0.2886, allocations: 67.45 kB / 0.5186 GB, free: 9.738 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002543/0.2888, allocations: 110.5 kB / 0.5187 GB, free: 9.715 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000164/0.289, allocations: 115.3 kB / 0.5188 GB, free: 9.688 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.303e-05/0.289, allocations: 11 kB / 0.5189 GB, free: 9.688 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.204e-05/0.2891, allocations: 19.53 kB / 0.5189 GB, free: 9.688 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 4.442e-05/0.2892, allocations: 44.31 kB / 0.5189 GB, free: 9.676 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 7.018e-05/0.2892, allocations: 80.7 kB / 0.519 GB, free: 9.633 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002921/0.2895, allocations: 209.2 kB / 0.5192 GB, free: 9.617 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.2895, allocations: 0 / 0.5192 GB, free: 9.617 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2896, allocations: 1.219 kB / 0.5192 GB, free: 9.617 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.818e-06/0.2896, allocations: 0 / 0.5192 GB, free: 9.617 MB / 346.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.0007525/0.2903, allocations: 0.5545 MB / 0.5197 GB, free: 9.168 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.259e-05/0.2904, allocations: 9.438 kB / 0.5197 GB, free: 9.168 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002346/0.2906, allocations: 53.77 kB / 0.5198 GB, free: 9.152 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002535/0.2909, allocations: 257.8 kB / 0.52 GB, free: 8.93 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.94e-05/0.2909, allocations: 19.78 kB / 0.5201 GB, free: 8.926 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.144e-05/0.291, allocations: 39.03 kB / 0.5201 GB, free: 8.918 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004694/0.2914, allocations: 278.1 kB / 0.5204 GB, free: 8.828 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.186e-05/0.2915, allocations: 7.203 kB / 0.5204 GB, free: 8.824 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.374e-05/0.2915, allocations: 14.72 kB / 0.5204 GB, free: 8.82 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.041e-05/0.2915, allocations: 6.281 kB / 0.5204 GB, free: 8.82 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004456/0.292, allocations: 202.1 kB / 0.5206 GB, free: 8.809 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001441/0.2934, allocations: 1.328 MB / 0.5219 GB, free: 7.879 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003835/0.2938, allocations: 251.6 kB / 0.5221 GB, free: 7.773 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002037/0.294, allocations: 110.9 kB / 0.5222 GB, free: 7.738 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.925e-05/0.294, allocations: 5.109 kB / 0.5222 GB, free: 7.738 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.067e-05/0.2941, allocations: 41.31 kB / 0.5223 GB, free: 7.695 MB / 346.7 MB Notification: Performance of pre-optimization done (n=26): time 1.513e-06/0.2941, allocations: 0 / 0.5223 GB, free: 7.695 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.002226/0.2963, allocations: 1.618 MB / 0.5239 GB, free: 6.551 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.745e-05/0.2964, allocations: 132.3 kB / 0.524 GB, free: 6.395 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001996/0.2966, allocations: 228.5 kB / 0.5242 GB, free: 6.281 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.767e-05/0.2966, allocations: 31.02 kB / 0.5242 GB, free: 6.25 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.73e-05/0.2967, allocations: 177.2 kB / 0.5244 GB, free: 6.129 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.006e-05/0.2967, allocations: 117.3 kB / 0.5245 GB, free: 6.055 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.306e-05/0.2968, allocations: 8.688 kB / 0.5245 GB, free: 6.055 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.171e-05/0.2968, allocations: 341 kB / 0.5248 GB, free: 5.742 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002539/0.2971, allocations: 113.9 kB / 0.525 GB, free: 5.738 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003025/0.2974, allocations: 247.6 kB / 0.5252 GB, free: 5.574 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002993/0.2977, allocations: 153.3 kB / 0.5253 GB, free: 5.551 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.2977, allocations: 1.188 kB / 0.5253 GB, free: 5.551 MB / 346.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007966/0.2985, allocations: 414.8 kB / 0.5257 GB, free: 5.469 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.2986, allocations: 8.031 kB / 0.5257 GB, free: 5.469 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.2986, allocations: 4.094 kB / 0.5257 GB, free: 5.469 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/0.2986, allocations: 7.422 kB / 0.5257 GB, free: 5.469 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003793/0.299, allocations: 110.2 kB / 0.5259 GB, free: 5.461 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.635e-05/0.299, allocations: 11.92 kB / 0.5259 GB, free: 5.457 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002127/0.2992, allocations: 35.45 kB / 0.5259 GB, free: 5.453 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.109e-05/0.2993, allocations: 16.92 kB / 0.5259 GB, free: 5.453 MB / 346.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.0001409/0.2994, allocations: 157.1 kB / 0.5261 GB, free: 5.324 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.811e-05/0.2995, allocations: 27.05 kB / 0.5261 GB, free: 5.312 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.642e-05/0.2996, allocations: 35.25 kB / 0.5261 GB, free: 5.309 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.2996, allocations: 8.094 kB / 0.5261 GB, free: 5.305 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.428e-06/0.2996, allocations: 1.062 kB / 0.5261 GB, free: 5.305 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.2996, allocations: 3.109 kB / 0.5261 GB, free: 5.305 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001386/0.301, allocations: 1.016 MB / 0.5271 GB, free: 4.637 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.301, allocations: 0.9062 kB / 0.5271 GB, free: 4.637 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003624/0.3014, allocations: 90.72 kB / 0.5272 GB, free: 4.625 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.521e-06/0.3014, allocations: 1.938 kB / 0.5272 GB, free: 4.625 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.149e-05/0.3014, allocations: 9.094 kB / 0.5272 GB, free: 4.621 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.019e-06/0.3015, allocations: 3.797 kB / 0.5272 GB, free: 4.621 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.3015, allocations: 6.266 kB / 0.5272 GB, free: 4.617 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009127/0.3024, allocations: 0.7639 MB / 0.528 GB, free: 4.113 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.985e-05/0.3024, allocations: 106.6 kB / 0.5281 GB, free: 4 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.619e-05/0.3025, allocations: 10.05 kB / 0.5281 GB, free: 3.996 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002786/0.3028, allocations: 24.17 kB / 0.5281 GB, free: 3.992 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.327e-05/0.3028, allocations: 28.14 kB / 0.5281 GB, free: 3.984 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.861e-05/0.3029, allocations: 8.844 kB / 0.5282 GB, free: 3.984 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001231/0.303, allocations: 159 kB / 0.5283 GB, free: 3.883 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.303, allocations: 0 / 0.5283 GB, free: 3.883 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004259/0.3034, allocations: 69.09 kB / 0.5284 GB, free: 3.871 MB / 346.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.898e-05/0.3035, allocations: 104.9 kB / 0.5285 GB, free: 3.77 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006249/0.3042, allocations: 299.5 kB / 0.5288 GB, free: 3.691 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3042, allocations: 1.125 kB / 0.5288 GB, free: 3.691 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002858/0.3045, allocations: 139.3 kB / 0.5289 GB, free: 3.66 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005857/0.3051, allocations: 42.92 kB / 0.5289 GB, free: 3.641 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001338/0.3064, allocations: 1.109 MB / 0.53 GB, free: 2.848 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002387/0.3067, allocations: 0.7661 MB / 0.5308 GB, free: 2.145 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.798e-05/0.3068, allocations: 32.23 kB / 0.5308 GB, free: 2.133 MB / 346.7 MB Notification: Performance of SimCode: time 2.91e-07/0.3068, allocations: 0 / 0.5308 GB, free: 2.133 MB / 346.7 MB Notification: Performance of Templates: time 0.00605/0.3128, allocations: 3.266 MB / 0.534 GB, free: 1.836 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestSpeed.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestSpeed --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches