Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001418/0.001418, allocations: 106 kB / 21.18 MB, free: 0.707 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.001453/0.001453, allocations: 183.9 kB / 24.47 MB, free: 4.074 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.498/1.498, allocations: 207.6 MB / 235.2 MB, free: 10.01 MB / 190.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") [Timeout 660]
"Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Performance of FrontEnd - loaded program: time 0.00167/0.00167, allocations: 51.92 kB / 347.7 MB, free: 9.562 MB / 286.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.2748, allocations: 49.15 MB / 396.8 MB, free: 9.516 MB / 318.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.005556/0.2804, allocations: 5.456 MB / 402.3 MB, free: 5.641 MB / 318.1 MB
Notification: Performance of NFInst.instExpressions: time 0.003566/0.284, allocations: 2.148 MB / 404.4 MB, free: 4.074 MB / 318.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0006607/0.2846, allocations: 48.75 kB / 404.5 MB, free: 4.051 MB / 318.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0004282/0.2851, allocations: 210.4 kB / 404.7 MB, free: 3.914 MB / 318.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0003371/0.2854, allocations: 169.6 kB / 404.8 MB, free: 3.789 MB / 318.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0007977/0.2862, allocations: 416.6 kB / 405.2 MB, free: 3.531 MB / 318.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0008955/0.2871, allocations: 0.9982 MB / 406.2 MB, free: 3.012 MB / 318.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0006102/0.2877, allocations: 428.3 kB / 406.6 MB, free: 2.738 MB / 318.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0004053/0.2881, allocations: 347.3 kB / 407 MB, free: 2.566 MB / 318.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.000384/0.2885, allocations: 366.3 kB / 407.3 MB, free: 2.367 MB / 318.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0001087/0.2886, allocations: 92.03 kB / 407.4 MB, free: 2.367 MB / 318.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002722/0.2889, allocations: 149.1 kB / 407.6 MB, free: 2.348 MB / 318.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001546/0.289, allocations: 213.3 kB / 407.8 MB, free: 2.199 MB / 318.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0003033/0.2893, allocations: 429 kB / 408.2 MB, free: 1.922 MB / 318.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.001264/0.2906, allocations: 1.179 MB / 409.4 MB, free: 1.445 MB / 318.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.2906, allocations: 1.125 kB / 409.4 MB, free: 1.445 MB / 318.1 MB
Notification: Performance of FrontEnd: time 1.873e-06/0.2906, allocations: 4 kB / 409.4 MB, free: 1.441 MB / 318.1 MB
Notification: Performance of Transformations before backend: time 2.019e-05/0.2906, allocations: 0 / 409.4 MB, free: 1.441 MB / 318.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.001441/0.2921, allocations: 0.977 MB / 410.4 MB, free: 0.7617 MB / 318.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.2921, allocations: 14.14 kB / 410.4 MB, free: 0.7578 MB / 318.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000135/0.2922, allocations: 91 kB / 410.5 MB, free: 0.7109 MB / 318.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007552/0.293, allocations: 463.2 kB / 410.9 MB, free: 384 kB / 318.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.795e-05/0.293, allocations: 64.03 kB / 411 MB, free: 352 kB / 318.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001071/0.2931, allocations: 95.45 kB / 411.1 MB, free: 312 kB / 318.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001375/0.2945, allocations: 0.7986 MB / 411.9 MB, free: 15.79 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 4.19e-05/0.2946, allocations: 11.5 kB / 411.9 MB, free: 15.78 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.09e-05/0.2946, allocations: 35.94 kB / 411.9 MB, free: 15.75 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.223e-05/0.2947, allocations: 19.88 kB / 411.9 MB, free: 15.75 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001093/0.2957, allocations: 0.4932 MB / 412.4 MB, free: 15.52 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003585/0.2993, allocations: 2.772 MB / 415.2 MB, free: 13.16 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0005571/0.2999, allocations: 202 kB / 415.4 MB, free: 13.05 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001829/0.3001, allocations: 98.38 kB / 415.5 MB, free: 13 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.0001173/0.3002, allocations: 20.42 kB / 415.5 MB, free: 12.99 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.102e-05/0.3002, allocations: 36.94 kB / 415.6 MB, free: 12.95 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=30): time 3.557e-06/0.3002, allocations: 3.984 kB / 415.6 MB, free: 12.95 MB / 334.1 MB
Notification: Performance of matching and sorting (n=35): time 0.002358/0.3026, allocations: 1.129 MB / 416.7 MB, free: 12.2 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.081e-05/0.3026, allocations: 54.78 kB / 416.7 MB, free: 12.13 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003244/0.303, allocations: 301.3 kB / 417 MB, free: 11.93 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.96e-05/0.303, allocations: 34.83 kB / 417.1 MB, free: 11.89 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0002919/0.3033, allocations: 414 kB / 417.5 MB, free: 11.53 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001145/0.3034, allocations: 138.9 kB / 417.6 MB, free: 11.41 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001211/0.3035, allocations: 92.33 kB / 417.7 MB, free: 11.34 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001707/0.3037, allocations: 350.5 kB / 418 MB, free: 11 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.000201/0.3039, allocations: 105.5 kB / 418.1 MB, free: 10.95 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.000314/0.3042, allocations: 253.8 kB / 418.4 MB, free: 10.71 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0005401/0.3047, allocations: 386 kB / 418.8 MB, free: 10.41 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.3047, allocations: 4.969 kB / 418.8 MB, free: 10.41 MB / 334.1 MB
Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007357/0.3055, allocations: 459.6 kB / 419.2 MB, free: 10.17 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.108e-05/0.3055, allocations: 10.64 kB / 419.2 MB, free: 10.16 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.3055, allocations: 4.344 kB / 419.2 MB, free: 10.16 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0001821/0.3057, allocations: 34.69 kB / 419.3 MB, free: 10.15 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003483/0.306, allocations: 110.4 kB / 419.4 MB, free: 10.12 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004691/0.3065, allocations: 0.5607 MB / 419.9 MB, free: 9.57 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001811/0.3067, allocations: 15.97 kB / 420 MB, free: 9.562 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.754e-05/0.3067, allocations: 21.22 kB / 420 MB, free: 9.559 MB / 334.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.0002864/0.307, allocations: 218.8 kB / 420.2 MB, free: 9.375 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 6.329e-05/0.3071, allocations: 37.11 kB / 420.2 MB, free: 9.355 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006103/0.3077, allocations: 325.1 kB / 420.5 MB, free: 9.16 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.3077, allocations: 8.828 kB / 420.6 MB, free: 9.156 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.3077, allocations: 4 kB / 420.6 MB, free: 9.152 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.3077, allocations: 0 / 420.6 MB, free: 9.152 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001471/0.3092, allocations: 0.9786 MB / 421.5 MB, free: 8.418 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.3092, allocations: 1.125 kB / 421.5 MB, free: 8.418 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003388/0.3095, allocations: 82.8 kB / 421.6 MB, free: 8.398 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0001357/0.3097, allocations: 28.31 kB / 421.6 MB, free: 8.383 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.921e-05/0.3097, allocations: 13.88 kB / 421.7 MB, free: 8.375 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004071/0.3101, allocations: 0.553 MB / 422.2 MB, free: 7.824 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3101, allocations: 1.375 kB / 422.2 MB, free: 7.824 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007975/0.3109, allocations: 0.5541 MB / 422.8 MB, free: 7.434 MB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 5.856e-05/0.3109, allocations: 30.73 kB / 422.8 MB, free: 7.414 MB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.713e-05/0.311, allocations: 11.98 kB / 422.8 MB, free: 7.406 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001489/0.3111, allocations: 8.031 kB / 422.8 MB, free: 7.402 MB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 6.748e-05/0.3112, allocations: 24.33 kB / 422.8 MB, free: 7.387 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.271e-05/0.3112, allocations: 14 kB / 422.9 MB, free: 7.383 MB / 334.1 MB
Notification: Performance of sorting global known variables: time 0.0002178/0.3115, allocations: 221.1 kB / 423.1 MB, free: 7.23 MB / 334.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.3115, allocations: 0 / 423.1 MB, free: 7.23 MB / 334.1 MB
Notification: Performance of remove unused functions: time 0.0005131/0.312, allocations: 116.9 kB / 423.2 MB, free: 7.219 MB / 334.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.0001922/0.3122, allocations: 118.6 kB / 423.3 MB, free: 7.109 MB / 334.1 MB
Notification: Performance of simCode: created initialization part: time 0.0005845/0.3127, allocations: 299 kB / 423.6 MB, free: 6.98 MB / 334.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3127, allocations: 1.406 kB / 423.6 MB, free: 6.98 MB / 334.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0002705/0.313, allocations: 137.2 kB / 423.7 MB, free: 6.922 MB / 334.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005111/0.3135, allocations: 64.84 kB / 423.8 MB, free: 6.883 MB / 334.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002672/0.3162, allocations: 1.601 MB / 425.4 MB, free: 5.711 MB / 334.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006658/0.3169, allocations: 0.9183 MB / 426.3 MB, free: 4.91 MB / 334.1 MB
Notification: Performance of simCode: alias equations: time 0.0001663/0.317, allocations: 46.38 kB / 426.4 MB, free: 4.887 MB / 334.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 8.661e-05/0.3171, allocations: 34.67 kB / 426.4 MB, free: 4.875 MB / 334.1 MB
Notification: Performance of SimCode: time 9.51e-07/0.3171, allocations: 0 / 426.4 MB, free: 4.875 MB / 334.1 MB
Notification: Performance of Templates: time 0.01002/0.3271, allocations: 4.175 MB / 430.6 MB, free: 0.8555 MB / 334.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile [Timeout 660]
(rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.720056222751737]