Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestFriction.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.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestFriction") translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009305/0.0009304, allocations: 194.6 kB / 16.79 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.278/1.278, allocations: 226.5 MB / 244.1 MB, free: 8.184 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000924/0.0009239, allocations: 105.4 kB / 296.1 MB, free: 6.891 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3407/0.3407, allocations: 44.83 MB / 393 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002619/0.0002623, allocations: 8 kB / 465.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3254/0.3257, allocations: 62.94 MB / 0.5165 GB, free: 37.01 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1142/0.44, allocations: 95.37 MB / 0.6096 GB, free: 10.02 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001907/0.4402, allocations: 63.98 kB / 0.6097 GB, free: 9.953 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04289/0.4831, allocations: 16.26 MB / 0.6255 GB, free: 9.656 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.4832, allocations: 0 / 0.6255 GB, free: 9.656 MB / 442.7 MB Notification: Performance of Transformations before backend: time 2.91e-05/0.4832, allocations: 16 kB / 0.6256 GB, free: 9.641 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.001932/0.4852, allocations: 1.048 MB / 0.6266 GB, free: 8.543 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.4852, allocations: 11.97 kB / 0.6266 GB, free: 8.531 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004406/0.4857, allocations: 135.9 kB / 0.6267 GB, free: 8.398 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005807/0.4862, allocations: 449.6 kB / 0.6271 GB, free: 7.922 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.173e-05/0.4863, allocations: 49.69 kB / 0.6272 GB, free: 7.871 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000114/0.4864, allocations: 64.28 kB / 0.6273 GB, free: 7.809 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001402/0.4878, allocations: 0.819 MB / 0.6281 GB, free: 6.957 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.125e-05/0.4879, allocations: 19.78 kB / 0.6281 GB, free: 6.938 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.292e-05/0.488, allocations: 20 kB / 0.6281 GB, free: 6.918 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.365e-05/0.488, allocations: 16 kB / 0.6281 GB, free: 6.902 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001479/0.4895, allocations: 0.7479 MB / 0.6288 GB, free: 6.156 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003861/0.4933, allocations: 2.646 MB / 0.6314 GB, free: 3.391 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001298/0.4947, allocations: 0.6688 MB / 0.6321 GB, free: 2.688 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006902/0.4954, allocations: 379.6 kB / 0.6324 GB, free: 2.305 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.281e-05/0.4954, allocations: 20.36 kB / 0.6325 GB, free: 2.285 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.671e-05/0.4955, allocations: 42.56 kB / 0.6325 GB, free: 2.234 MB / 442.7 MB Notification: Performance of pre-optimization done (n=79): time 2.565e-06/0.4955, allocations: 0 / 0.6325 GB, free: 2.234 MB / 442.7 MB Notification: Performance of matching and sorting (n=83): time 0.007369/0.5029, allocations: 3.688 MB / 0.6361 GB, free: 14.29 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.273e-05/0.503, allocations: 136.5 kB / 0.6362 GB, free: 14.12 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006043/0.5036, allocations: 457.8 kB / 0.6367 GB, free: 13.66 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 8.098e-05/0.5037, allocations: 57.69 kB / 0.6367 GB, free: 13.6 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002115/0.5039, allocations: 280.6 kB / 0.637 GB, free: 13.32 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002445/0.5041, allocations: 284.1 kB / 0.6373 GB, free: 13.04 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.147e-05/0.5042, allocations: 19.98 kB / 0.6373 GB, free: 13.02 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.5044, allocations: 374.8 kB / 0.6376 GB, free: 12.64 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007318/0.5051, allocations: 365.8 kB / 0.638 GB, free: 12.28 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008004/0.5059, allocations: 0.5176 MB / 0.6385 GB, free: 11.7 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001255/0.5072, allocations: 0.7177 MB / 0.6392 GB, free: 10.93 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.5072, allocations: 0 / 0.6392 GB, free: 10.93 MB / 458.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002493/0.5097, allocations: 1.209 MB / 0.6404 GB, free: 9.703 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.509e-05/0.5098, allocations: 8 kB / 0.6404 GB, free: 9.695 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.35e-05/0.5098, allocations: 4 kB / 0.6404 GB, free: 9.691 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001102/0.5109, allocations: 0.5112 MB / 0.6409 GB, free: 9.168 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005202/0.5114, allocations: 151.8 kB / 0.641 GB, free: 9.02 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003165/0.5146, allocations: 3.67 MB / 0.6446 GB, free: 5.141 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009436/0.5156, allocations: 195.7 kB / 0.6448 GB, free: 4.949 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.536e-05/0.5156, allocations: 32 kB / 0.6448 GB, free: 4.918 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 (brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 84 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 8,1 10,1 6,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003907/0.516, allocations: 232.2 kB / 0.645 GB, free: 4.68 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001757/0.5162, allocations: 67.16 kB / 0.6451 GB, free: 4.613 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001739/0.5164, allocations: 88.75 kB / 0.6452 GB, free: 4.527 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.5164, allocations: 15.94 kB / 0.6452 GB, free: 4.512 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.5164, allocations: 0 / 0.6452 GB, free: 4.512 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.5164, allocations: 3.984 kB / 0.6452 GB, free: 4.508 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003606/0.52, allocations: 2.158 MB / 0.6473 GB, free: 2.277 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.122e-06/0.5201, allocations: 4 kB / 0.6473 GB, free: 2.273 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005315/0.5206, allocations: 123.8 kB / 0.6474 GB, free: 2.152 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009649/0.5216, allocations: 475.1 kB / 0.6479 GB, free: 1.676 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.535e-05/0.5217, allocations: 43.89 kB / 0.6479 GB, free: 1.633 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002861/0.5245, allocations: 3.516 MB / 0.6514 GB, free: 13.91 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.5246, allocations: 3.984 kB / 0.6514 GB, free: 13.9 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002946/0.5275, allocations: 1.738 MB / 0.6531 GB, free: 12.14 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003559/0.5279, allocations: 232 kB / 0.6533 GB, free: 11.89 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001283/0.528, allocations: 35.92 kB / 0.6533 GB, free: 11.86 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008186/0.5289, allocations: 175.8 kB / 0.6535 GB, free: 11.68 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004219/0.5293, allocations: 215.5 kB / 0.6537 GB, free: 11.47 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.7e-05/0.5294, allocations: 27.97 kB / 0.6537 GB, free: 11.45 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0003566/0.5297, allocations: 310.9 kB / 0.654 GB, free: 11.14 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5297, allocations: 0 / 0.654 GB, free: 11.14 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0008206/0.5306, allocations: 216 kB / 0.6542 GB, free: 10.93 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 10,1 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008201/0.5314, allocations: 412.1 kB / 0.6546 GB, free: 10.64 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002042/0.5334, allocations: 1.049 MB / 0.6557 GB, free: 9.586 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.5335, allocations: 0 / 0.6557 GB, free: 9.586 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001149/0.5346, allocations: 0.6165 MB / 0.6563 GB, free: 8.957 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001032/0.5357, allocations: 134.8 kB / 0.6564 GB, free: 8.832 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004602/0.5403, allocations: 2.673 MB / 0.659 GB, free: 6.105 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004539/0.5407, allocations: 0.9263 MB / 0.6599 GB, free: 5.145 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002372/0.541, allocations: 63.39 kB / 0.66 GB, free: 5.082 MB / 474.7 MB Notification: Performance of SimCode: time 1.994e-06/0.541, allocations: 0 / 0.66 GB, free: 5.082 MB / 474.7 MB Notification: Performance of Templates: time 0.01906/0.5601, allocations: 18.27 MB / 0.6778 GB, free: 2.812 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestFriction.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestFriction --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestFriction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestFriction/TestFriction.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches