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.001837/0.001837, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002213/0.002213, allocations: 213 kB / 23.73 MB, free: 4.164 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.517/1.517, allocations: 230.5 MB / 257.4 MB, free: 7.809 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.002012/0.002012, allocations: 67.89 kB / 378.2 MB, free: 2.312 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2488/0.2508, allocations: 53.41 MB / 431.6 MB, free: 6.512 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.00683/0.2576, allocations: 4.834 MB / 436.5 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003904/0.2615, allocations: 2.056 MB / 438.5 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004522/0.262, allocations: 59.44 kB / 438.6 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004615/0.2625, allocations: 210.2 kB / 438.8 MB, free: 15.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003648/0.2628, allocations: 170.5 kB / 439 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009635/0.2638, allocations: 411 kB / 439.4 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001218/0.265, allocations: 1.005 MB / 440.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006939/0.2657, allocations: 393.4 kB / 440.7 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004918/0.2662, allocations: 354.8 kB / 441.1 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003894/0.2666, allocations: 314.4 kB / 441.4 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001363/0.2667, allocations: 92 kB / 441.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002716/0.267, allocations: 155.9 kB / 441.6 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000194/0.2672, allocations: 203.4 kB / 441.8 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003437/0.2675, allocations: 346.4 kB / 442.2 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001308/0.2688, allocations: 1.209 MB / 443.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.2688, allocations: 0 / 443.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2688, allocations: 0 / 443.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.566e-05/0.2689, allocations: 0 / 443.4 MB, free: 10.7 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.001513/0.2704, allocations: 0.9804 MB / 444.4 MB, free: 9.684 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.2704, allocations: 19.92 kB / 444.4 MB, free: 9.664 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002783/0.2707, allocations: 100.4 kB / 444.5 MB, free: 9.566 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008742/0.2716, allocations: 464.3 kB / 444.9 MB, free: 9.086 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.94e-05/0.2716, allocations: 62.38 kB / 445 MB, free: 9.023 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001297/0.2718, allocations: 92.33 kB / 445.1 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001411/0.2732, allocations: 0.8008 MB / 445.9 MB, free: 8.098 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.165e-05/0.2732, allocations: 8 kB / 445.9 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.294e-05/0.2733, allocations: 32 kB / 445.9 MB, free: 8.059 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.978e-05/0.2733, allocations: 20 kB / 445.9 MB, free: 8.039 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001008/0.2743, allocations: 0.4957 MB / 446.4 MB, free: 7.539 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003145/0.2774, allocations: 2.477 MB / 448.9 MB, free: 4.961 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005531/0.278, allocations: 218.4 kB / 449.1 MB, free: 4.738 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001817/0.2782, allocations: 88.83 kB / 449.2 MB, free: 4.648 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001075/0.2783, allocations: 19.98 kB / 449.2 MB, free: 4.629 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.062e-05/0.2783, allocations: 39 kB / 449.3 MB, free: 4.582 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.653e-06/0.2783, allocations: 0 / 449.3 MB, free: 4.582 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002334/0.2806, allocations: 1.125 MB / 450.4 MB, free: 3.398 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.275e-05/0.2807, allocations: 59.34 kB / 450.5 MB, free: 3.328 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003412/0.281, allocations: 317.5 kB / 450.8 MB, free: 3.012 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.837e-05/0.2811, allocations: 33.7 kB / 450.8 MB, free: 2.973 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002774/0.2813, allocations: 407.7 kB / 451.2 MB, free: 2.566 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001152/0.2815, allocations: 146.8 kB / 451.3 MB, free: 2.422 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001167/0.2816, allocations: 86.16 kB / 451.4 MB, free: 2.332 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001688/0.2817, allocations: 358.7 kB / 451.8 MB, free: 1.973 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002118/0.282, allocations: 105 kB / 451.9 MB, free: 1.871 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003238/0.2823, allocations: 250.1 kB / 452.1 MB, free: 1.562 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005726/0.2828, allocations: 392.6 kB / 452.5 MB, free: 1.117 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.585e-05/0.2829, allocations: 4 kB / 452.5 MB, free: 1.113 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007411/0.2836, allocations: 453.9 kB / 453 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.2836, allocations: 8.062 kB / 453 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.2836, allocations: 11.94 kB / 453 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001751/0.2838, allocations: 32.84 kB / 453 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003526/0.2842, allocations: 115.8 kB / 453.1 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004354/0.2846, allocations: 0.5523 MB / 453.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001799/0.2848, allocations: 16 kB / 453.7 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.07e-05/0.2848, allocations: 24 kB / 453.7 MB, free: 15.88 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.0002736/0.2851, allocations: 221.6 kB / 453.9 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.702e-05/0.2852, allocations: 39.83 kB / 454 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006364/0.2858, allocations: 322.4 kB / 454.3 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.2858, allocations: 4 kB / 454.3 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.2858, allocations: 4 kB / 454.3 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.2858, allocations: 3.984 kB / 454.3 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001332/0.2871, allocations: 0.8403 MB / 455.1 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.115e-06/0.2871, allocations: 48 / 455.1 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003672/0.2875, allocations: 83.88 kB / 455.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001205/0.2876, allocations: 32.84 kB / 455.2 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.256e-05/0.2877, allocations: 11.98 kB / 455.3 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003732/0.288, allocations: 0.56 MB / 455.8 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.288, allocations: 3.984 kB / 455.8 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008001/0.2888, allocations: 0.5447 MB / 456.4 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.347e-05/0.2889, allocations: 35.7 kB / 456.4 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.814e-05/0.289, allocations: 15.98 kB / 456.4 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001561/0.2891, allocations: 8 kB / 456.4 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.444e-05/0.2892, allocations: 28.05 kB / 456.5 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.005e-05/0.2892, allocations: 12.12 kB / 456.5 MB, free: 12.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002219/0.2894, allocations: 215.2 kB / 456.7 MB, free: 12.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2894, allocations: 3.938 kB / 456.7 MB, free: 12.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004777/0.2899, allocations: 116 kB / 456.8 MB, free: 12.66 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.0001975/0.2901, allocations: 131 kB / 456.9 MB, free: 12.52 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000597/0.2907, allocations: 280 kB / 457.2 MB, free: 12.25 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2907, allocations: 1.188 kB / 457.2 MB, free: 12.25 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002757/0.291, allocations: 144.4 kB / 457.3 MB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005036/0.2915, allocations: 70.91 kB / 457.4 MB, free: 12.04 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002473/0.2939, allocations: 1.611 MB / 459 MB, free: 10.39 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003609/0.2943, allocations: 325.6 kB / 459.3 MB, free: 10.05 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001553/0.2944, allocations: 51.31 kB / 459.4 MB, free: 9.996 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.425e-05/0.2945, allocations: 31.44 kB / 459.4 MB, free: 9.965 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2945, allocations: 0 / 459.4 MB, free: 9.965 MB / 366.1 MB Notification: Performance of Templates: time 0.01057/0.3051, allocations: 4.402 MB / 463.8 MB, free: 5.621 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.6417805049568415]