Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.First,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First") translateModel(Modelica.Mechanics.Rotational.Examples.First,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001245/0.001245, allocations: 114.5 kB / 18.45 MB, free: 4.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001324/0.001324, allocations: 211.8 kB / 19.41 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.421/1.421, allocations: 227.7 MB / 247.9 MB, free: 10.17 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001941/0.001941, allocations: 67.89 kB / 359.6 MB, free: 12.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2439/0.2458, allocations: 50.54 MB / 410.2 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003945/0.2498, allocations: 2.378 MB / 412.6 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001173/0.2509, allocations: 0.6427 MB / 413.2 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000117/0.251, allocations: 7.938 kB / 413.2 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001559/0.2512, allocations: 31.66 kB / 413.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001626/0.2514, allocations: 87.27 kB / 413.3 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002237/0.2516, allocations: 63.84 kB / 413.4 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00032/0.2519, allocations: 274.7 kB / 413.7 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000174/0.2521, allocations: 74.75 kB / 413.7 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000198/0.2523, allocations: 119.5 kB / 413.9 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001519/0.2524, allocations: 115.5 kB / 414 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.393e-05/0.2525, allocations: 20 kB / 414 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.594e-05/0.2525, allocations: 28 kB / 414 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.755e-05/0.2526, allocations: 47.78 kB / 414.1 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001293/0.2527, allocations: 127.3 kB / 414.2 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003624/0.2531, allocations: 274.8 kB / 414.5 MB, free: 13.19 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.2531, allocations: 0 / 414.5 MB, free: 13.19 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2531, allocations: 0 / 414.5 MB, free: 13.19 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.63e-06/0.2531, allocations: 0 / 414.5 MB, free: 13.19 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0007943/0.2539, allocations: 0.5299 MB / 415 MB, free: 12.61 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.2539, allocations: 8.031 kB / 415 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001772/0.2541, allocations: 40.73 kB / 415 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003606/0.2544, allocations: 252.6 kB / 415.3 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.098e-05/0.2545, allocations: 12.81 kB / 415.3 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.189e-05/0.2545, allocations: 32.33 kB / 415.3 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003764/0.2549, allocations: 195.6 kB / 415.5 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.77e-05/0.2549, allocations: 3.984 kB / 415.5 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.296e-05/0.2549, allocations: 12 kB / 415.5 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.406e-06/0.2549, allocations: 4 kB / 415.5 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002961/0.2552, allocations: 137.7 kB / 415.7 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001003/0.2562, allocations: 0.6231 MB / 416.3 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003134/0.2566, allocations: 169.5 kB / 416.5 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001808/0.2567, allocations: 92.81 kB / 416.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.341e-05/0.2568, allocations: 4 kB / 416.6 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.361e-05/0.2568, allocations: 34.56 kB / 416.6 MB, free: 10.9 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 3.897e-06/0.2568, allocations: 7.984 kB / 416.6 MB, free: 10.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.002181/0.259, allocations: 1.064 MB / 417.7 MB, free: 9.738 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.187e-05/0.259, allocations: 63.34 kB / 417.7 MB, free: 9.664 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002027/0.2592, allocations: 183.2 kB / 417.9 MB, free: 9.477 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.465e-05/0.2593, allocations: 29.7 kB / 417.9 MB, free: 9.441 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001177/0.2594, allocations: 144.8 kB / 418.1 MB, free: 9.293 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001073/0.2595, allocations: 122.9 kB / 418.2 MB, free: 9.172 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.315e-05/0.2596, allocations: 53.7 kB / 418.2 MB, free: 9.113 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.2597, allocations: 330.8 kB / 418.6 MB, free: 8.781 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000153/0.2599, allocations: 75.97 kB / 418.6 MB, free: 8.707 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001889/0.2601, allocations: 98.81 kB / 418.7 MB, free: 8.602 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003505/0.2604, allocations: 193.6 kB / 418.9 MB, free: 8.406 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.2604, allocations: 0 / 418.9 MB, free: 8.406 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005459/0.261, allocations: 295.2 kB / 419.2 MB, free: 8.109 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.261, allocations: 4 kB / 419.2 MB, free: 8.105 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.261, allocations: 4 kB / 419.2 MB, free: 8.102 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001728/0.2612, allocations: 40.83 kB / 419.3 MB, free: 8.059 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002544/0.2614, allocations: 55.91 kB / 419.3 MB, free: 8.004 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001677/0.2631, allocations: 1.74 MB / 421.1 MB, free: 6.129 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001323/0.2632, allocations: 20.05 kB / 421.1 MB, free: 6.109 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.729e-05/0.2633, allocations: 8 kB / 421.1 MB, free: 6.102 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001431/0.2634, allocations: 141.7 kB / 421.2 MB, free: 5.953 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.163e-05/0.2634, allocations: 27.8 kB / 421.2 MB, free: 5.926 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.35e-05/0.2635, allocations: 30.66 kB / 421.3 MB, free: 5.895 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.427e-05/0.2635, allocations: 7.984 kB / 421.3 MB, free: 5.887 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.2635, allocations: 3.938 kB / 421.3 MB, free: 5.883 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.2635, allocations: 0 / 421.3 MB, free: 5.883 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001189/0.2647, allocations: 0.7814 MB / 422.1 MB, free: 5.023 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.95e-06/0.2647, allocations: 4 kB / 422.1 MB, free: 5.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002757/0.265, allocations: 63.84 kB / 422.1 MB, free: 4.957 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001144/0.2651, allocations: 36.92 kB / 422.2 MB, free: 4.918 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.823e-05/0.2651, allocations: 8 kB / 422.2 MB, free: 4.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001333/0.2665, allocations: 1.489 MB / 423.7 MB, free: 3.273 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.2665, allocations: 0 / 423.7 MB, free: 3.273 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007162/0.2672, allocations: 482.7 kB / 424.1 MB, free: 2.773 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.267e-05/0.2673, allocations: 101 kB / 424.2 MB, free: 2.656 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.808e-05/0.2673, allocations: 11.94 kB / 424.3 MB, free: 2.645 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000137/0.2674, allocations: 8 kB / 424.3 MB, free: 2.637 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.991e-05/0.2675, allocations: 19.97 kB / 424.3 MB, free: 2.617 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.476e-05/0.2675, allocations: 8 kB / 424.3 MB, free: 2.609 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001186/0.2676, allocations: 144.3 kB / 424.4 MB, free: 2.469 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2676, allocations: 0 / 424.4 MB, free: 2.469 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003704/0.268, allocations: 64 kB / 424.5 MB, free: 2.406 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * 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 (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000136/0.2681, allocations: 107.2 kB / 424.6 MB, free: 2.293 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006406/0.2688, allocations: 330.4 kB / 424.9 MB, free: 1.957 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2688, allocations: 4.125 kB / 424.9 MB, free: 1.953 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003588/0.2691, allocations: 226.5 kB / 425.1 MB, free: 1.719 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004443/0.2696, allocations: 51.91 kB / 425.2 MB, free: 1.668 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001328/0.2709, allocations: 0.7395 MB / 425.9 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004502/0.2713, allocations: 0.7564 MB / 426.7 MB, free: 108 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.958e-05/0.2714, allocations: 26.27 kB / 426.7 MB, free: 84 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.424e-05/0.2715, allocations: 19.44 kB / 426.7 MB, free: 68 kB / 334.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2715, allocations: 0 / 426.7 MB, free: 68 kB / 334.1 MB Notification: Performance of Templates: time 0.007174/0.2787, allocations: 2.759 MB / 429.5 MB, free: 13.32 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches