Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001828/0.001828, allocations: 109 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002206/0.002206, allocations: 213.9 kB / 24.54 MB, free: 4.02 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.539/1.539, allocations: 230.6 MB / 258.3 MB, free: 8.055 MB / 206.1 MB
"
[Timeout remaining time 178]
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.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs")
translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") [Timeout 660]
"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.002017/0.002017, allocations: 72.75 kB / 379 MB, free: 2.766 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2452/0.2473, allocations: 53.37 MB / 432.4 MB, free: 6.984 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007077/0.2543, allocations: 5.483 MB / 437.9 MB, free: 1.484 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.00377/0.2581, allocations: 2.173 MB / 440.1 MB, free: 15.3 MB / 350.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0004272/0.2585, allocations: 55.56 kB / 440.1 MB, free: 15.25 MB / 350.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0004675/0.259, allocations: 202.2 kB / 440.3 MB, free: 15.05 MB / 350.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0003728/0.2594, allocations: 186.4 kB / 440.5 MB, free: 14.86 MB / 350.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0008932/0.2603, allocations: 414.7 kB / 440.9 MB, free: 14.46 MB / 350.1 MB
Notification: Performance of NFFlatten.flatten: time 0.001077/0.2613, allocations: 1.013 MB / 441.9 MB, free: 13.44 MB / 350.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0006597/0.262, allocations: 417.4 kB / 442.3 MB, free: 13.01 MB / 350.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0004735/0.2625, allocations: 354.8 kB / 442.7 MB, free: 12.66 MB / 350.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.000427/0.2629, allocations: 370.2 kB / 443 MB, free: 12.3 MB / 350.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0001332/0.263, allocations: 96 kB / 443.1 MB, free: 12.21 MB / 350.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002594/0.2633, allocations: 152 kB / 443.3 MB, free: 12.06 MB / 350.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0002011/0.2635, allocations: 207.3 kB / 443.5 MB, free: 11.86 MB / 350.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0003977/0.2639, allocations: 438 kB / 443.9 MB, free: 11.43 MB / 350.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.00126/0.2652, allocations: 1.193 MB / 445.1 MB, free: 10.23 MB / 350.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.2652, allocations: 0 / 445.1 MB, free: 10.23 MB / 350.1 MB
Notification: Performance of FrontEnd: time 1.412e-06/0.2652, allocations: 0 / 445.1 MB, free: 10.23 MB / 350.1 MB
Notification: Performance of Transformations before backend: time 1.738e-05/0.2652, allocations: 0 / 445.1 MB, free: 10.23 MB / 350.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 214
 * Number of variables: 214
Notification: Performance of Generate backend data structure: time 0.001498/0.2667, allocations: 0.9842 MB / 446.1 MB, free: 9.219 MB / 350.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.2667, allocations: 12.03 kB / 446.1 MB, free: 9.207 MB / 350.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002871/0.267, allocations: 108.4 kB / 446.2 MB, free: 9.102 MB / 350.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008022/0.2678, allocations: 460.3 kB / 446.6 MB, free: 8.625 MB / 350.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.611e-05/0.2679, allocations: 62.38 kB / 446.7 MB, free: 8.562 MB / 350.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001305/0.268, allocations: 92.33 kB / 446.8 MB, free: 8.473 MB / 350.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001413/0.2694, allocations: 0.8047 MB / 447.6 MB, free: 7.633 MB / 350.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 3.215e-05/0.2694, allocations: 4 kB / 447.6 MB, free: 7.629 MB / 350.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.704e-05/0.2695, allocations: 36 kB / 447.6 MB, free: 7.594 MB / 350.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.139e-05/0.2695, allocations: 20 kB / 447.7 MB, free: 7.574 MB / 350.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001002/0.2705, allocations: 0.4918 MB / 448.1 MB, free: 7.078 MB / 350.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003325/0.2739, allocations: 2.769 MB / 450.9 MB, free: 4.195 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0005597/0.2744, allocations: 208.2 kB / 451.1 MB, free: 3.98 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001867/0.2746, allocations: 96.75 kB / 451.2 MB, free: 3.883 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.0001107/0.2747, allocations: 23.92 kB / 451.2 MB, free: 3.859 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3e-05/0.2747, allocations: 39.06 kB / 451.3 MB, free: 3.812 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=30): time 1.483e-06/0.2747, allocations: 0 / 451.3 MB, free: 3.812 MB / 350.1 MB
Notification: Performance of matching and sorting (n=35): time 0.002383/0.2771, allocations: 1.124 MB / 452.4 MB, free: 2.629 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.376e-05/0.2772, allocations: 55.41 kB / 452.5 MB, free: 2.562 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003382/0.2775, allocations: 305.7 kB / 452.8 MB, free: 2.258 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.891e-05/0.2775, allocations: 33.7 kB / 452.8 MB, free: 2.219 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0003079/0.2778, allocations: 411.7 kB / 453.2 MB, free: 1.809 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001181/0.278, allocations: 138.8 kB / 453.3 MB, free: 1.672 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.000136/0.2781, allocations: 90.14 kB / 453.4 MB, free: 1.578 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001878/0.2783, allocations: 350.7 kB / 453.8 MB, free: 1.227 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002208/0.2785, allocations: 112.9 kB / 453.9 MB, free: 1.117 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003565/0.2789, allocations: 254 kB / 454.1 MB, free: 0.8047 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0005752/0.2794, allocations: 388.7 kB / 454.5 MB, free: 372 kB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2794, allocations: 0 / 454.5 MB, free: 372 kB / 350.1 MB
Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007677/0.2802, allocations: 461.3 kB / 454.9 MB, free: 15.9 MB / 366.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.2802, allocations: 11.25 kB / 455 MB, free: 15.89 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.2802, allocations: 7.984 kB / 455 MB, free: 15.89 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0001964/0.2804, allocations: 36.84 kB / 455 MB, free: 15.85 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004002/0.2808, allocations: 111.8 kB / 455.1 MB, free: 15.74 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004417/0.2813, allocations: 0.5523 MB / 455.7 MB, free: 15.16 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001806/0.2815, allocations: 20 kB / 455.7 MB, free: 15.14 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.922e-05/0.2815, allocations: 20 kB / 455.7 MB, free: 15.12 MB / 366.1 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 (60):
 * Single equations (assignments): 59
 * 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): 0 systems
 * Non-linear torn systems (#iteration vars, #inner vars): 1 system
   {(1,2)}
Notification: Performance of prepare postOptimizeDAE: time 0.0002822/0.2818, allocations: 225.7 kB / 455.9 MB, free: 14.89 MB / 366.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 6.655e-05/0.2818, allocations: 39.77 kB / 456 MB, free: 14.85 MB / 366.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006412/0.2825, allocations: 326.2 kB / 456.3 MB, free: 14.53 MB / 366.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/0.2825, allocations: 7.984 kB / 456.3 MB, free: 14.52 MB / 366.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.2825, allocations: 0 / 456.3 MB, free: 14.52 MB / 366.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.2825, allocations: 0 / 456.3 MB, free: 14.52 MB / 366.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001511/0.284, allocations: 0.9956 MB / 457.3 MB, free: 13.46 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.284, allocations: 4 kB / 457.3 MB, free: 13.45 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003737/0.2844, allocations: 79.89 kB / 457.4 MB, free: 13.38 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0001274/0.2845, allocations: 37 kB / 457.4 MB, free: 13.34 MB / 366.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.845e-05/0.2845, allocations: 11.98 kB / 457.4 MB, free: 13.32 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004163/0.285, allocations: 0.5407 MB / 457.9 MB, free: 12.76 MB / 366.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.571e-06/0.285, allocations: 7.922 kB / 458 MB, free: 12.75 MB / 366.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008266/0.2858, allocations: 0.5411 MB / 458.5 MB, free: 12.17 MB / 366.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 5.626e-05/0.2858, allocations: 31.77 kB / 458.5 MB, free: 12.14 MB / 366.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.074e-05/0.2859, allocations: 16.17 kB / 458.5 MB, free: 12.12 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001527/0.2861, allocations: 4 kB / 458.5 MB, free: 12.12 MB / 366.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 6.634e-05/0.2861, allocations: 35.89 kB / 458.6 MB, free: 12.09 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.073e-05/0.2861, allocations: 8 kB / 458.6 MB, free: 12.08 MB / 366.1 MB
Notification: Performance of sorting global known variables: time 0.0002276/0.2864, allocations: 219.1 kB / 458.8 MB, free: 11.87 MB / 366.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.2864, allocations: 0 / 458.8 MB, free: 11.87 MB / 366.1 MB
Notification: Performance of remove unused functions: time 0.0005112/0.2869, allocations: 116 kB / 458.9 MB, free: 11.75 MB / 366.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 6
 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.phi,inertia2b.w,torqueToAngle2b.phi,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w)
 * 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 (33):
 * Single equations (assignments): 32
 * 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): 0 systems
 * Non-linear torn systems (#iteration vars, #inner vars): 1 system
   {(1,2)}
Notification: Performance of Backend phase and start with SimCode phase: time 0.0001848/0.2871, allocations: 133.3 kB / 459 MB, free: 11.62 MB / 366.1 MB
Notification: Performance of simCode: created initialization part: time 0.0006452/0.2877, allocations: 303.6 kB / 459.3 MB, free: 11.32 MB / 366.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.2877, allocations: 0 / 459.3 MB, free: 11.32 MB / 366.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0002726/0.288, allocations: 137 kB / 459.5 MB, free: 11.19 MB / 366.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005192/0.2885, allocations: 65.66 kB / 459.5 MB, free: 11.12 MB / 366.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002588/0.2911, allocations: 1.599 MB / 461.1 MB, free: 9.477 MB / 366.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006427/0.2917, allocations: 0.9171 MB / 462.1 MB, free: 8.535 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 0.0001688/0.2919, allocations: 54.81 kB / 462.1 MB, free: 8.48 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 7.179e-05/0.292, allocations: 31.44 kB / 462.1 MB, free: 8.449 MB / 366.1 MB
Notification: Performance of SimCode: time 4.31e-07/0.292, allocations: 4 kB / 462.1 MB, free: 8.445 MB / 366.1 MB
Notification: Performance of Templates: time 0.01011/0.3021, allocations: 4.168 MB / 466.3 MB, free: 4.301 MB / 366.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile [Timeout 660]
(rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 4.718023349530995]