Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001284/0.001284, allocations: 110.5 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.001465/0.001465, allocations: 213.2 kB / 24.54 MB, free: 4.02 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 230.3 MB / 257.9 MB, free: 8.238 MB / 206.1 MB
"
[Timeout remaining time 178]
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)
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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002049/0.002049, allocations: 55.91 kB / 378.7 MB, free: 2.801 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2492/0.2513, allocations: 53.37 MB / 432.1 MB, free: 7.09 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007792/0.2591, allocations: 5.495 MB / 437.6 MB, free: 1.578 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.004143/0.2632, allocations: 2.169 MB / 439.8 MB, free: 15.4 MB / 350.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0008499/0.2641, allocations: 51.56 kB / 439.8 MB, free: 15.35 MB / 350.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0006116/0.2647, allocations: 210.2 kB / 440 MB, free: 15.14 MB / 350.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0006181/0.2653, allocations: 170.4 kB / 440.2 MB, free: 14.97 MB / 350.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.001105/0.2664, allocations: 422.8 kB / 440.6 MB, free: 14.56 MB / 350.1 MB
Notification: Performance of NFFlatten.flatten: time 0.001547/0.2679, allocations: 1.013 MB / 441.6 MB, free: 13.54 MB / 350.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0007551/0.2687, allocations: 417.6 kB / 442 MB, free: 13.11 MB / 350.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0006251/0.2693, allocations: 354.8 kB / 442.4 MB, free: 12.76 MB / 350.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.000524/0.2699, allocations: 362.4 kB / 442.7 MB, free: 12.4 MB / 350.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0001563/0.27, allocations: 92 kB / 442.8 MB, free: 12.31 MB / 350.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0003295/0.2703, allocations: 159.9 kB / 443 MB, free: 12.16 MB / 350.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0002168/0.2706, allocations: 211.3 kB / 443.2 MB, free: 11.95 MB / 350.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0005031/0.2711, allocations: 430 kB / 443.6 MB, free: 11.53 MB / 350.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.001443/0.2725, allocations: 1.204 MB / 444.8 MB, free: 10.33 MB / 350.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2725, allocations: 0 / 444.8 MB, free: 10.33 MB / 350.1 MB
Notification: Performance of FrontEnd: time 1.693e-06/0.2725, allocations: 0 / 444.8 MB, free: 10.33 MB / 350.1 MB
Notification: Performance of Transformations before backend: time 3.985e-05/0.2725, allocations: 0 / 444.8 MB, free: 10.33 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.001781/0.2743, allocations: 0.9842 MB / 445.8 MB, free: 9.312 MB / 350.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.2744, allocations: 8.031 kB / 445.8 MB, free: 9.305 MB / 350.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000278/0.2746, allocations: 108.4 kB / 445.9 MB, free: 9.199 MB / 350.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008278/0.2755, allocations: 460.3 kB / 446.4 MB, free: 8.723 MB / 350.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.531e-05/0.2755, allocations: 62.38 kB / 446.4 MB, free: 8.66 MB / 350.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001287/0.2757, allocations: 92.31 kB / 446.5 MB, free: 8.57 MB / 350.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0015/0.2772, allocations: 0.8048 MB / 447.3 MB, free: 7.73 MB / 350.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 3.924e-05/0.2772, allocations: 7.984 kB / 447.3 MB, free: 7.723 MB / 350.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.973e-05/0.2773, allocations: 36 kB / 447.4 MB, free: 7.688 MB / 350.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.281e-05/0.2773, allocations: 20 kB / 447.4 MB, free: 7.668 MB / 350.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001047/0.2783, allocations: 0.4918 MB / 447.9 MB, free: 7.172 MB / 350.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003366/0.2817, allocations: 2.769 MB / 450.6 MB, free: 4.289 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0005595/0.2823, allocations: 207 kB / 450.8 MB, free: 4.078 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001847/0.2824, allocations: 92.77 kB / 450.9 MB, free: 3.984 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 9.26e-05/0.2825, allocations: 15.98 kB / 450.9 MB, free: 3.969 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.153e-05/0.2826, allocations: 43.06 kB / 451 MB, free: 3.918 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=30): time 1.533e-06/0.2826, allocations: 3.938 kB / 451 MB, free: 3.914 MB / 350.1 MB
Notification: Performance of matching and sorting (n=35): time 0.002329/0.2849, allocations: 1.127 MB / 452.1 MB, free: 2.727 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.58e-05/0.2849, allocations: 59.41 kB / 452.2 MB, free: 2.656 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003447/0.2853, allocations: 309.6 kB / 452.5 MB, free: 2.348 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.978e-05/0.2853, allocations: 33.7 kB / 452.5 MB, free: 2.309 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0002846/0.2856, allocations: 407.7 kB / 452.9 MB, free: 1.902 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001086/0.2857, allocations: 138.8 kB / 453 MB, free: 1.766 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.000129/0.2858, allocations: 86.14 kB / 453.1 MB, free: 1.676 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001842/0.286, allocations: 358.7 kB / 453.5 MB, free: 1.316 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002223/0.2862, allocations: 105 kB / 453.6 MB, free: 1.215 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003324/0.2866, allocations: 250.1 kB / 453.8 MB, free: 0.9062 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.00057/0.2871, allocations: 396.6 kB / 454.2 MB, free: 468 kB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.175e-06/0.2872, allocations: 0 / 454.2 MB, free: 468 kB / 350.1 MB
Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007714/0.2879, allocations: 461.4 kB / 454.7 MB, free: 15.99 MB / 366.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.2879, allocations: 10.5 kB / 454.7 MB, free: 15.98 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.2879, allocations: 4 kB / 454.7 MB, free: 15.98 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0001869/0.2881, allocations: 41.42 kB / 454.7 MB, free: 15.94 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003733/0.2885, allocations: 111.8 kB / 454.8 MB, free: 15.83 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004348/0.2889, allocations: 0.5523 MB / 455.4 MB, free: 15.25 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001752/0.2891, allocations: 20 kB / 455.4 MB, free: 15.23 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.837e-05/0.2892, allocations: 20 kB / 455.4 MB, free: 15.21 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.0002683/0.2894, allocations: 217.3 kB / 455.6 MB, free: 14.99 MB / 366.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 6.929e-05/0.2895, allocations: 51.8 kB / 455.7 MB, free: 14.94 MB / 366.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006581/0.2902, allocations: 322.5 kB / 456 MB, free: 14.62 MB / 366.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.2902, allocations: 0 / 456 MB, free: 14.62 MB / 366.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 8.305e-06/0.2902, allocations: 8 kB / 456 MB, free: 14.61 MB / 366.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.2902, allocations: 3.984 kB / 456 MB, free: 14.61 MB / 366.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00149/0.2917, allocations: 0.9838 MB / 457 MB, free: 13.55 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.2917, allocations: 4 kB / 457 MB, free: 13.55 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000359/0.292, allocations: 79.89 kB / 457.1 MB, free: 13.47 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0001188/0.2921, allocations: 32.84 kB / 457.1 MB, free: 13.44 MB / 366.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.564e-05/0.2922, allocations: 16.16 kB / 457.1 MB, free: 13.42 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003935/0.2926, allocations: 0.5484 MB / 457.7 MB, free: 12.85 MB / 366.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.2926, allocations: 0 / 457.7 MB, free: 12.85 MB / 366.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008738/0.2934, allocations: 0.5489 MB / 458.2 MB, free: 12.26 MB / 366.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 5.524e-05/0.2935, allocations: 27.77 kB / 458.2 MB, free: 12.23 MB / 366.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.696e-05/0.2936, allocations: 8 kB / 458.2 MB, free: 12.23 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001712/0.2937, allocations: 11.98 kB / 458.3 MB, free: 12.21 MB / 366.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 8.008e-05/0.2938, allocations: 35.83 kB / 458.3 MB, free: 12.18 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.858e-05/0.2938, allocations: 15.98 kB / 458.3 MB, free: 12.17 MB / 366.1 MB
Notification: Performance of sorting global known variables: time 0.0002801/0.2941, allocations: 219.1 kB / 458.5 MB, free: 11.95 MB / 366.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.2941, allocations: 0 / 458.5 MB, free: 11.95 MB / 366.1 MB
Notification: Performance of remove unused functions: time 0.0005389/0.2947, allocations: 116 kB / 458.6 MB, free: 11.84 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.0002355/0.2949, allocations: 119.1 kB / 458.8 MB, free: 11.71 MB / 366.1 MB
Notification: Performance of simCode: created initialization part: time 0.0007276/0.2956, allocations: 303.6 kB / 459.1 MB, free: 11.42 MB / 366.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.2956, allocations: 0 / 459.1 MB, free: 11.42 MB / 366.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0002904/0.2959, allocations: 137.2 kB / 459.2 MB, free: 11.29 MB / 366.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005511/0.2965, allocations: 65.52 kB / 459.2 MB, free: 11.22 MB / 366.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002583/0.299, allocations: 1.606 MB / 460.9 MB, free: 9.57 MB / 366.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005841/0.2996, allocations: 0.9171 MB / 461.8 MB, free: 8.629 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 0.0001478/0.2998, allocations: 50.83 kB / 461.8 MB, free: 8.578 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 7.148e-05/0.2998, allocations: 35.42 kB / 461.9 MB, free: 8.543 MB / 366.1 MB
Notification: Performance of SimCode: time 2.9e-07/0.2998, allocations: 0 / 461.9 MB, free: 8.543 MB / 366.1 MB
Notification: Performance of Templates: time 0.01019/0.31, allocations: 4.179 MB / 466 MB, free: 4.395 MB / 366.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile [Timeout 660]
(rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_trunk_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_trunk_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.43776700925082]