Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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=2000,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-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001322/0.001322, allocations: 118.1 kB / 17.83 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001286/0.001286, allocations: 209.1 kB / 18.79 MB, free: 4.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.45/1.45, allocations: 230.4 MB / 250 MB, free: 9.031 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001997/0.001997, allocations: 75.81 kB / 367.3 MB, free: 7.043 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2478/0.2498, allocations: 53.31 MB / 420.6 MB, free: 8.371 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006991/0.2568, allocations: 5.459 MB / 426.1 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003932/0.2607, allocations: 2.153 MB / 428.3 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005913/0.2613, allocations: 43.75 kB / 428.3 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004692/0.2618, allocations: 206.2 kB / 428.5 MB, free: 496 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003844/0.2622, allocations: 166.4 kB / 428.7 MB, free: 328 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009171/0.2631, allocations: 407.1 kB / 429.1 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001072/0.2641, allocations: 1.013 MB / 430.1 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006433/0.2648, allocations: 429.1 kB / 430.5 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004513/0.2652, allocations: 342.9 kB / 430.8 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004207/0.2657, allocations: 374.2 kB / 431.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001135/0.2658, allocations: 92 kB / 431.3 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002594/0.266, allocations: 152 kB / 431.4 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001953/0.2662, allocations: 211.3 kB / 431.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003828/0.2666, allocations: 426 kB / 432.1 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001275/0.2679, allocations: 1.202 MB / 433.3 MB, free: 11.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.2679, allocations: 0 / 433.3 MB, free: 11.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.036e-06/0.2679, allocations: 4 kB / 433.3 MB, free: 11.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.678e-05/0.2679, allocations: 0 / 433.3 MB, free: 11.68 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.001588/0.2695, allocations: 1.056 MB / 434.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.2695, allocations: 12.03 kB / 434.3 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002448/0.2698, allocations: 100.4 kB / 434.4 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007949/0.2706, allocations: 0.5262 MB / 435 MB, free: 9.895 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.536e-05/0.2706, allocations: 62.38 kB / 435 MB, free: 9.832 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001297/0.2708, allocations: 92.31 kB / 435.1 MB, free: 9.742 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001388/0.2722, allocations: 0.8087 MB / 435.9 MB, free: 8.898 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.502e-05/0.2722, allocations: 3.938 kB / 435.9 MB, free: 8.895 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.618e-05/0.2723, allocations: 36 kB / 436 MB, free: 8.859 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.097e-05/0.2723, allocations: 24 kB / 436 MB, free: 8.836 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001033/0.2733, allocations: 0.4918 MB / 436.5 MB, free: 8.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003567/0.2769, allocations: 2.869 MB / 439.3 MB, free: 5.348 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006257/0.2775, allocations: 194.7 kB / 439.5 MB, free: 5.145 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001893/0.2777, allocations: 100.8 kB / 439.6 MB, free: 5.043 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002424/0.2779, allocations: 247.3 kB / 439.9 MB, free: 4.746 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.041e-05/0.278, allocations: 43 kB / 439.9 MB, free: 4.695 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.234e-06/0.278, allocations: 0 / 439.9 MB, free: 4.695 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002628/0.2806, allocations: 1.265 MB / 441.2 MB, free: 3.332 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.453e-05/0.2806, allocations: 59.41 kB / 441.2 MB, free: 3.262 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004181/0.2811, allocations: 305.7 kB / 441.5 MB, free: 2.953 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.02e-05/0.2811, allocations: 33.7 kB / 441.6 MB, free: 2.914 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002875/0.2814, allocations: 415.7 kB / 442 MB, free: 2.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001082/0.2815, allocations: 138.8 kB / 442.1 MB, free: 2.363 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.2816, allocations: 86.2 kB / 442.2 MB, free: 2.273 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.2818, allocations: 354.7 kB / 442.5 MB, free: 1.918 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002046/0.282, allocations: 105.1 kB / 442.6 MB, free: 1.816 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003213/0.2823, allocations: 254.7 kB / 442.9 MB, free: 1.504 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005503/0.2829, allocations: 396.7 kB / 443.3 MB, free: 1.055 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.2829, allocations: 3.938 kB / 443.3 MB, free: 1.051 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.000749/0.2836, allocations: 465.3 kB / 443.7 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.355e-05/0.2836, allocations: 8 kB / 443.7 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.829e-06/0.2836, allocations: 4 kB / 443.7 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002053/0.2838, allocations: 37.44 kB / 443.8 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003749/0.2842, allocations: 115.8 kB / 443.9 MB, free: 432 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004351/0.2847, allocations: 0.5562 MB / 444.5 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002394/0.2849, allocations: 19.98 kB / 444.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.569e-05/0.2849, allocations: 20 kB / 444.5 MB, free: 15.8 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.0003085/0.2852, allocations: 225.7 kB / 444.7 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.906e-05/0.2853, allocations: 39.77 kB / 444.7 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006506/0.286, allocations: 316.9 kB / 445.1 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.227e-06/0.286, allocations: 3.938 kB / 445.1 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.286, allocations: 8 kB / 445.1 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/0.286, allocations: 3.938 kB / 445.1 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001495/0.2875, allocations: 1.024 MB / 446.1 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.2875, allocations: 0 / 446.1 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003745/0.2879, allocations: 79.89 kB / 446.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000138/0.288, allocations: 32.84 kB / 446.2 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.568e-05/0.288, allocations: 12.16 kB / 446.2 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000371/0.2884, allocations: 0.5445 MB / 446.8 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.2884, allocations: 4.031 kB / 446.8 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008395/0.2892, allocations: 0.5418 MB / 447.3 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.032e-05/0.2893, allocations: 109 kB / 447.4 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.917e-05/0.2894, allocations: 15.94 kB / 447.4 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001559/0.2895, allocations: 7.984 kB / 447.4 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.921e-05/0.2896, allocations: 23.97 kB / 447.5 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.631e-05/0.2896, allocations: 16 kB / 447.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002261/0.2898, allocations: 215.1 kB / 447.7 MB, free: 12.43 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2898, allocations: 0 / 447.7 MB, free: 12.43 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005274/0.2904, allocations: 120 kB / 447.8 MB, free: 12.31 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.0001819/0.2906, allocations: 123.1 kB / 447.9 MB, free: 12.18 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006438/0.2912, allocations: 299.9 kB / 448.2 MB, free: 11.89 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.2912, allocations: 4 kB / 448.2 MB, free: 11.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002857/0.2915, allocations: 137.1 kB / 448.4 MB, free: 11.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005082/0.292, allocations: 64.33 kB / 448.4 MB, free: 11.69 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002596/0.2946, allocations: 1.601 MB / 450 MB, free: 10.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005713/0.2952, allocations: 0.9171 MB / 450.9 MB, free: 9.102 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001653/0.2953, allocations: 54.19 kB / 451 MB, free: 9.051 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.221e-05/0.2954, allocations: 31.44 kB / 451 MB, free: 9.02 MB / 366.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2954, allocations: 0 / 451 MB, free: 9.02 MB / 366.1 MB Notification: Performance of Templates: time 0.009734/0.3051, allocations: 3.955 MB / 455 MB, free: 5.094 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches