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.001535/0.001535, allocations: 112.5 kB / 18.45 MB, free: 4.605 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.00175/0.00175, allocations: 207.3 kB / 21.41 MB, free: 1.648 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.613/1.613, allocations: 230.6 MB / 254.8 MB, free: 15.08 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.001492/0.001492, allocations: 43.94 kB / 374.1 MB, free: 9.699 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1091, allocations: 53.33 MB / 427.5 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.2249/0.3341, allocations: 5.462 MB / 432.9 MB, free: 8.059 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003698/0.3378, allocations: 2.146 MB / 435.1 MB, free: 7.883 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006864/0.3384, allocations: 52.62 kB / 435.1 MB, free: 7.855 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004374/0.3389, allocations: 203.6 kB / 435.3 MB, free: 7.758 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003811/0.3393, allocations: 176.2 kB / 435.5 MB, free: 7.672 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009227/0.3402, allocations: 405.1 kB / 435.9 MB, free: 7.633 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009986/0.3412, allocations: 1.007 MB / 436.9 MB, free: 7.301 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006413/0.3418, allocations: 429.7 kB / 437.3 MB, free: 7.051 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005228/0.3423, allocations: 356.6 kB / 437.7 MB, free: 6.879 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004081/0.3428, allocations: 369.1 kB / 438 MB, free: 6.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000125/0.3429, allocations: 96.38 kB / 438.1 MB, free: 6.676 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003332/0.3432, allocations: 155.3 kB / 438.3 MB, free: 6.652 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001703/0.3434, allocations: 201 kB / 438.5 MB, free: 6.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003394/0.3437, allocations: 436.9 kB / 438.9 MB, free: 6.238 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001459/0.3452, allocations: 1.191 MB / 440.1 MB, free: 5.797 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3452, allocations: 0 / 440.1 MB, free: 5.797 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.3452, allocations: 3.938 kB / 440.1 MB, free: 5.793 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.328e-05/0.3452, allocations: 1.562 kB / 440.1 MB, free: 5.793 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.001486/0.3467, allocations: 1.055 MB / 441.2 MB, free: 5.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.3467, allocations: 10.22 kB / 441.2 MB, free: 5.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002549/0.347, allocations: 101.1 kB / 441.3 MB, free: 4.973 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008047/0.3478, allocations: 0.5231 MB / 441.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.199e-05/0.3478, allocations: 63.72 kB / 441.9 MB, free: 4.559 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000127/0.348, allocations: 89.59 kB / 441.9 MB, free: 4.527 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001379/0.3494, allocations: 0.8094 MB / 442.7 MB, free: 4.125 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.508e-05/0.3494, allocations: 3.5 kB / 442.8 MB, free: 4.125 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.169e-05/0.3494, allocations: 37.55 kB / 442.8 MB, free: 4.098 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.469e-05/0.3495, allocations: 20.78 kB / 442.8 MB, free: 4.098 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000977/0.3505, allocations: 0.4986 MB / 443.3 MB, free: 3.914 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003127/0.3536, allocations: 2.863 MB / 446.2 MB, free: 1.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005588/0.3541, allocations: 207.5 kB / 446.4 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001609/0.3543, allocations: 103.4 kB / 446.5 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001506/0.3544, allocations: 245.1 kB / 446.7 MB, free: 1.492 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.689e-05/0.3545, allocations: 44.91 kB / 446.8 MB, free: 1.441 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.714e-06/0.3545, allocations: 0 / 446.8 MB, free: 1.441 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002317/0.3568, allocations: 1.259 MB / 448 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.667e-05/0.3568, allocations: 56.3 kB / 448.1 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003207/0.3571, allocations: 317.3 kB / 448.4 MB, free: 348 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.904e-05/0.3572, allocations: 31.36 kB / 448.4 MB, free: 312 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002044/0.3574, allocations: 414.4 kB / 448.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001078/0.3575, allocations: 137.9 kB / 449 MB, free: 15.87 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001389/0.3576, allocations: 91.03 kB / 449 MB, free: 15.82 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001918/0.3578, allocations: 350.3 kB / 449.4 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002271/0.358, allocations: 107.6 kB / 449.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003687/0.3584, allocations: 253.2 kB / 449.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006116/0.359, allocations: 393.5 kB / 450.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/0.359, allocations: 1.188 kB / 450.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008251/0.3598, allocations: 461.7 kB / 450.6 MB, free: 14.72 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.287e-05/0.3599, allocations: 8.484 kB / 450.6 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.3599, allocations: 4.344 kB / 450.6 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002122/0.3601, allocations: 39.19 kB / 450.6 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003695/0.3604, allocations: 107 kB / 450.7 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004585/0.3609, allocations: 0.5579 MB / 451.3 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002148/0.3611, allocations: 21.12 kB / 451.3 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.187e-05/0.3612, allocations: 22.52 kB / 451.3 MB, free: 14.14 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.0003589/0.3615, allocations: 219.5 kB / 451.5 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.411e-05/0.3616, allocations: 37.89 kB / 451.6 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006858/0.3623, allocations: 318.4 kB / 451.9 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.3623, allocations: 10.69 kB / 451.9 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.3623, allocations: 0 / 451.9 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.3623, allocations: 1.922 kB / 451.9 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001753/0.3641, allocations: 1.016 MB / 452.9 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.3641, allocations: 6.406 kB / 452.9 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003813/0.3644, allocations: 80.06 kB / 453 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001498/0.3646, allocations: 34.42 kB / 453 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.724e-05/0.3646, allocations: 9.703 kB / 453 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004379/0.3651, allocations: 0.5504 MB / 453.6 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.3651, allocations: 1.828 kB / 453.6 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008668/0.3659, allocations: 0.5487 MB / 454.1 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001299/0.3661, allocations: 117.9 kB / 454.3 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.82e-05/0.3661, allocations: 8.594 kB / 454.3 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001519/0.3663, allocations: 8.656 kB / 454.3 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.263e-05/0.3663, allocations: 23.33 kB / 454.3 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.448e-05/0.3664, allocations: 10.64 kB / 454.3 MB, free: 12.11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002704/0.3666, allocations: 218.8 kB / 454.5 MB, free: 11.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3666, allocations: 0 / 454.5 MB, free: 11.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006207/0.3672, allocations: 121.3 kB / 454.6 MB, free: 11.96 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.0002042/0.3674, allocations: 125.8 kB / 454.8 MB, free: 11.86 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006917/0.3681, allocations: 296.4 kB / 455.1 MB, free: 11.76 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3681, allocations: 5 kB / 455.1 MB, free: 11.76 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002822/0.3684, allocations: 140.4 kB / 455.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005314/0.369, allocations: 71.66 kB / 455.3 MB, free: 11.69 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002947/0.3719, allocations: 1.643 MB / 456.9 MB, free: 10.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006693/0.3726, allocations: 0.9246 MB / 457.8 MB, free: 9.871 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001077/0.3727, allocations: 34.64 kB / 457.9 MB, free: 9.863 MB / 366.1 MB Notification: Performance of SimCode: time 1.603e-06/0.3727, allocations: 0 / 457.9 MB, free: 9.863 MB / 366.1 MB Notification: Performance of Templates: time 0.01589/0.3886, allocations: 9.9 MB / 467.8 MB, free: 5.156 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/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: 8.110745523998048]