Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001817/0.001817, allocations: 107.2 kB / 20.44 MB, free: 1.207 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002307/0.002307, allocations: 212.4 kB / 23.73 MB, free: 4.41 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.528/1.528, allocations: 230.6 MB / 257.5 MB, free: 7.809 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00158/0.00158, allocations: 51.92 kB / 378.2 MB, free: 2.449 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2398, allocations: 53.35 MB / 431.6 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006834/0.2466, allocations: 4.845 MB / 436.4 MB, free: 1.855 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003762/0.2504, allocations: 2.06 MB / 438.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004147/0.2508, allocations: 51.56 kB / 438.5 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004874/0.2513, allocations: 206.2 kB / 438.7 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003744/0.2517, allocations: 174.4 kB / 438.9 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008861/0.2526, allocations: 403 kB / 439.3 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001048/0.2536, allocations: 1.009 MB / 440.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006343/0.2542, allocations: 397.4 kB / 440.7 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004473/0.2547, allocations: 354.8 kB / 441 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004408/0.2551, allocations: 318.3 kB / 441.3 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001265/0.2553, allocations: 92 kB / 441.4 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002677/0.2555, allocations: 151.9 kB / 441.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002219/0.2558, allocations: 207.4 kB / 441.8 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003606/0.2561, allocations: 346.5 kB / 442.1 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001298/0.2574, allocations: 1.205 MB / 443.3 MB, free: 10.9 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2574, allocations: 0 / 443.3 MB, free: 10.9 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2574, allocations: 7.938 kB / 443.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.323e-05/0.2574, allocations: 0 / 443.3 MB, free: 10.89 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.001552/0.259, allocations: 0.9765 MB / 444.3 MB, free: 9.883 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.259, allocations: 8.031 kB / 444.3 MB, free: 9.875 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002546/0.2593, allocations: 104.4 kB / 444.4 MB, free: 9.773 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008889/0.2602, allocations: 468.2 kB / 444.9 MB, free: 9.289 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.351e-05/0.2602, allocations: 62.38 kB / 444.9 MB, free: 9.227 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001372/0.2604, allocations: 92.31 kB / 445 MB, free: 9.137 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00145/0.2618, allocations: 0.8047 MB / 445.8 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.613e-05/0.2619, allocations: 4 kB / 445.8 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.68e-05/0.2619, allocations: 36 kB / 445.9 MB, free: 8.258 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.124e-05/0.2619, allocations: 20 kB / 445.9 MB, free: 8.238 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001031/0.263, allocations: 499.6 kB / 446.4 MB, free: 7.746 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003321/0.2663, allocations: 2.477 MB / 448.9 MB, free: 5.168 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005616/0.2669, allocations: 211 kB / 449.1 MB, free: 4.953 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001813/0.267, allocations: 92.81 kB / 449.1 MB, free: 4.859 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001122/0.2672, allocations: 19.98 kB / 449.2 MB, free: 4.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.063e-05/0.2672, allocations: 39 kB / 449.2 MB, free: 4.793 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.633e-06/0.2672, allocations: 0 / 449.2 MB, free: 4.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002382/0.2696, allocations: 1.116 MB / 450.3 MB, free: 3.617 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/0.2696, allocations: 63.34 kB / 450.4 MB, free: 3.543 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003536/0.27, allocations: 317.6 kB / 450.7 MB, free: 3.227 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.208e-05/0.27, allocations: 29.7 kB / 450.7 MB, free: 3.191 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002863/0.2703, allocations: 411.7 kB / 451.1 MB, free: 2.781 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001149/0.2704, allocations: 142.8 kB / 451.3 MB, free: 2.641 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001192/0.2705, allocations: 90.14 kB / 451.4 MB, free: 2.547 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001727/0.2707, allocations: 354.7 kB / 451.7 MB, free: 2.191 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002068/0.2709, allocations: 109 kB / 451.8 MB, free: 2.086 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003206/0.2712, allocations: 246.1 kB / 452 MB, free: 1.781 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005833/0.2718, allocations: 400.6 kB / 452.4 MB, free: 1.328 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.2718, allocations: 4 kB / 452.4 MB, free: 1.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.000738/0.2726, allocations: 461.9 kB / 452.9 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.2726, allocations: 12.03 kB / 452.9 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.437e-06/0.2726, allocations: 4 kB / 452.9 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000196/0.2728, allocations: 44.72 kB / 453 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003514/0.2731, allocations: 107.8 kB / 453.1 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004362/0.2736, allocations: 0.5562 MB / 453.6 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001754/0.2737, allocations: 19.98 kB / 453.6 MB, free: 96 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.855e-05/0.2738, allocations: 20 kB / 453.7 MB, free: 76 kB / 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.000289/0.2741, allocations: 221.9 kB / 453.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.777e-05/0.2741, allocations: 39.77 kB / 453.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000619/0.2748, allocations: 326.4 kB / 454.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.2748, allocations: 4 kB / 454.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.2748, allocations: 0 / 454.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.2748, allocations: 0 / 454.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001303/0.2761, allocations: 0.8402 MB / 455.1 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.2761, allocations: 4 kB / 455.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003546/0.2764, allocations: 79.89 kB / 455.2 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000119/0.2766, allocations: 32.84 kB / 455.2 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.561e-05/0.2766, allocations: 12 kB / 455.2 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003661/0.2769, allocations: 0.5523 MB / 455.7 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.888e-06/0.277, allocations: 4 kB / 455.8 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008083/0.2778, allocations: 0.5489 MB / 456.3 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.764e-05/0.2778, allocations: 35.7 kB / 456.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.541e-05/0.2779, allocations: 8 kB / 456.3 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00015/0.278, allocations: 4 kB / 456.3 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.865e-05/0.2781, allocations: 27.95 kB / 456.4 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.376e-05/0.2781, allocations: 15.98 kB / 456.4 MB, free: 13.19 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002186/0.2783, allocations: 219.2 kB / 456.6 MB, free: 12.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2783, allocations: 0 / 456.6 MB, free: 12.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004822/0.2788, allocations: 116 kB / 456.7 MB, free: 12.86 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.0001638/0.279, allocations: 123.1 kB / 456.8 MB, free: 12.73 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006131/0.2796, allocations: 299.8 kB / 457.1 MB, free: 12.44 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.2796, allocations: 1.188 kB / 457.1 MB, free: 12.44 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002663/0.2798, allocations: 136.1 kB / 457.3 MB, free: 12.31 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005029/0.2803, allocations: 84.34 kB / 457.3 MB, free: 12.23 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002464/0.2828, allocations: 1.591 MB / 458.9 MB, free: 10.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003585/0.2832, allocations: 333.5 kB / 459.3 MB, free: 10.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001566/0.2833, allocations: 43.34 kB / 459.3 MB, free: 10.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.797e-05/0.2834, allocations: 31.44 kB / 459.3 MB, free: 10.17 MB / 366.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2834, allocations: 0 / 459.3 MB, free: 10.17 MB / 366.1 MB Notification: Performance of Templates: time 0.01006/0.2935, allocations: 4.416 MB / 463.8 MB, free: 5.812 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_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.657845497131348]