Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001777/0.001777, allocations: 109.5 kB / 20.43 MB, free: 1.449 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001331/0.001331, allocations: 187.4 kB / 23.72 MB, free: 4.68 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.449/1.449, allocations: 225.6 MB / 252.5 MB, free: 12.98 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo)
Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.00156/0.00156, allocations: 47.92 kB / 370.9 MB, free: 9.32 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2454/0.2469, allocations: 52.18 MB / 423.1 MB, free: 14.65 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007971/0.2549, allocations: 5.482 MB / 428.6 MB, free: 9.145 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.004261/0.2591, allocations: 2.103 MB / 430.7 MB, free: 7.031 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.001025/0.2602, allocations: 47.62 kB / 430.7 MB, free: 6.984 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0006711/0.2608, allocations: 210.2 kB / 430.9 MB, free: 6.777 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0007182/0.2616, allocations: 174.4 kB / 431.1 MB, free: 6.605 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.001201/0.2628, allocations: 414.8 kB / 431.5 MB, free: 6.199 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.001521/0.2643, allocations: 1.013 MB / 432.5 MB, free: 5.18 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.000788/0.2651, allocations: 421.6 kB / 432.9 MB, free: 4.742 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0005092/0.2656, allocations: 350.9 kB / 433.3 MB, free: 4.398 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0004113/0.266, allocations: 374.2 kB / 433.7 MB, free: 4.031 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.000118/0.2661, allocations: 92 kB / 433.7 MB, free: 3.941 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002713/0.2664, allocations: 144 kB / 433.9 MB, free: 3.801 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.000201/0.2666, allocations: 203.3 kB / 434.1 MB, free: 3.602 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0004343/0.267, allocations: 438 kB / 434.5 MB, free: 3.172 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.001372/0.2684, allocations: 1.18 MB / 435.7 MB, free: 1.996 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.2684, allocations: 0 / 435.7 MB, free: 1.996 MB / 334.1 MB
Notification: Performance of FrontEnd: time 9.72e-07/0.2684, allocations: 0 / 435.7 MB, free: 1.996 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 1.704e-05/0.2684, allocations: 4 kB / 435.7 MB, free: 1.992 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: 214
 * Number of variables: 214
Notification: Performance of Generate backend data structure: time 0.001582/0.27, allocations: 0.9765 MB / 436.7 MB, free: 0.9844 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.27, allocations: 12.03 kB / 436.7 MB, free: 0.9727 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001551/0.2702, allocations: 92.38 kB / 436.8 MB, free: 0.8828 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.000828/0.271, allocations: 464.2 kB / 437.2 MB, free: 412 kB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.91e-05/0.2711, allocations: 62.38 kB / 437.3 MB, free: 348 kB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001268/0.2712, allocations: 88.33 kB / 437.4 MB, free: 260 kB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001461/0.2727, allocations: 0.8126 MB / 438.2 MB, free: 15.4 MB / 350.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 3.203e-05/0.2727, allocations: 3.953 kB / 438.2 MB, free: 15.4 MB / 350.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.747e-05/0.2728, allocations: 36 kB / 438.2 MB, free: 15.36 MB / 350.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.517e-05/0.2728, allocations: 28 kB / 438.3 MB, free: 15.34 MB / 350.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009973/0.2738, allocations: 499.6 kB / 438.7 MB, free: 14.85 MB / 350.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003435/0.2772, allocations: 2.769 MB / 441.5 MB, free: 11.97 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0005982/0.2778, allocations: 204 kB / 441.7 MB, free: 11.76 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001905/0.278, allocations: 101.2 kB / 441.8 MB, free: 11.66 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.0001224/0.2781, allocations: 23.92 kB / 441.8 MB, free: 11.64 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.284e-05/0.2782, allocations: 38.56 kB / 441.9 MB, free: 11.59 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=30): time 2.114e-06/0.2782, allocations: 0 / 441.9 MB, free: 11.59 MB / 350.1 MB
Notification: Performance of matching and sorting (n=35): time 0.002525/0.2807, allocations: 1.108 MB / 443 MB, free: 10.42 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.559e-05/0.2807, allocations: 59.34 kB / 443 MB, free: 10.35 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003438/0.2811, allocations: 308.5 kB / 443.3 MB, free: 10.05 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.594e-05/0.2811, allocations: 29.7 kB / 443.4 MB, free: 10.01 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0002712/0.2814, allocations: 415.7 kB / 443.8 MB, free: 9.602 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001025/0.2815, allocations: 138.8 kB / 443.9 MB, free: 9.465 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001292/0.2816, allocations: 90.14 kB / 444 MB, free: 9.367 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001594/0.2818, allocations: 350.7 kB / 444.3 MB, free: 9.016 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002112/0.282, allocations: 105 kB / 444.4 MB, free: 8.914 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003258/0.2823, allocations: 254 kB / 444.7 MB, free: 8.605 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.000586/0.2829, allocations: 388.9 kB / 445.1 MB, free: 8.164 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.2829, allocations: 4 kB / 445.1 MB, free: 8.16 MB / 350.1 MB
Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007628/0.2837, allocations: 457.5 kB / 445.5 MB, free: 7.703 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.232e-05/0.2837, allocations: 8 kB / 445.5 MB, free: 7.695 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.2837, allocations: 4 kB / 445.5 MB, free: 7.691 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0002139/0.2839, allocations: 36.83 kB / 445.6 MB, free: 7.652 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003951/0.2843, allocations: 111.8 kB / 445.7 MB, free: 7.543 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005077/0.2848, allocations: 0.5605 MB / 446.2 MB, free: 6.957 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002013/0.285, allocations: 16 kB / 446.3 MB, free: 6.941 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.456e-05/0.2851, allocations: 20 kB / 446.3 MB, free: 6.922 MB / 350.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.0003787/0.2854, allocations: 221.6 kB / 446.5 MB, free: 6.695 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 7.922e-05/0.2855, allocations: 39.77 kB / 446.5 MB, free: 6.656 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007226/0.2862, allocations: 330.1 kB / 446.8 MB, free: 6.316 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.2862, allocations: 4 kB / 446.9 MB, free: 6.312 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.2862, allocations: 0 / 446.9 MB, free: 6.312 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.2863, allocations: 4.031 kB / 446.9 MB, free: 6.309 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001585/0.2878, allocations: 0.9877 MB / 447.8 MB, free: 5.254 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/0.2878, allocations: 4 kB / 447.8 MB, free: 5.25 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003741/0.2882, allocations: 79.89 kB / 447.9 MB, free: 5.172 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0001507/0.2884, allocations: 32.84 kB / 448 MB, free: 5.137 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.465e-05/0.2884, allocations: 8 kB / 448 MB, free: 5.129 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003803/0.2888, allocations: 0.5486 MB / 448.5 MB, free: 4.555 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.2888, allocations: 7.938 kB / 448.5 MB, free: 4.547 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008141/0.2896, allocations: 0.5529 MB / 449.1 MB, free: 3.953 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 6.321e-05/0.2897, allocations: 31.77 kB / 449.1 MB, free: 3.922 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.849e-05/0.2897, allocations: 12 kB / 449.1 MB, free: 3.91 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001565/0.2899, allocations: 11.92 kB / 449.1 MB, free: 3.898 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 6.576e-05/0.2899, allocations: 19.97 kB / 449.1 MB, free: 3.879 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.591e-05/0.2899, allocations: 15.98 kB / 449.2 MB, free: 3.863 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0002232/0.2902, allocations: 215 kB / 449.4 MB, free: 3.656 MB / 350.1 MB
Notification: Performance of sort global known variables: time 1.1e-07/0.2902, allocations: 4 kB / 449.4 MB, free: 3.652 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0005438/0.2907, allocations: 119.9 kB / 449.5 MB, free: 3.535 MB / 350.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.000175/0.2909, allocations: 119.2 kB / 449.6 MB, free: 3.406 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.0006553/0.2915, allocations: 304.8 kB / 449.9 MB, free: 3.109 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.2915, allocations: 0 / 449.9 MB, free: 3.109 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0002753/0.2918, allocations: 131.8 kB / 450 MB, free: 2.98 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005181/0.2923, allocations: 64.45 kB / 450.1 MB, free: 2.922 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002683/0.295, allocations: 1.615 MB / 451.7 MB, free: 1.262 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006132/0.2956, allocations: 0.9134 MB / 452.6 MB, free: 328 kB / 350.1 MB
Notification: Performance of simCode: alias equations: time 0.0001608/0.2958, allocations: 50.2 kB / 452.7 MB, free: 280 kB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 7.149e-05/0.2959, allocations: 35.44 kB / 452.7 MB, free: 244 kB / 350.1 MB
Notification: Performance of SimCode: time 4.31e-07/0.2959, allocations: 0 / 452.7 MB, free: 244 kB / 350.1 MB
Notification: Performance of Templates: time 0.01031/0.3062, allocations: 4.168 MB / 456.9 MB, free: 12.1 MB / 366.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.4131980845704675]