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.001274/0.001274, allocations: 85.83 kB / 20.68 MB, free: 1.035 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.001383/0.001383, allocations: 165.2 kB / 23.95 MB, free: 4.168 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.431/1.431, allocations: 177.1 MB / 204.3 MB, free: 9.188 MB / 190.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 1.713e-06/1.713e-06, allocations: 3.938 kB / 325.1 MB, free: 416 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.827e-05/2.999e-05, allocations: 6.219 kB / 325.1 MB, free: 408 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007228/0.007258, allocations: 4.852 MB / 329.9 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005126/0.01238, allocations: 2.061 MB / 332 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00122/0.0136, allocations: 52.06 kB / 332 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000583/0.01419, allocations: 212.6 kB / 332.2 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006466/0.01483, allocations: 189.2 kB / 332.4 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001286/0.01612, allocations: 403.4 kB / 332.8 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001352/0.01747, allocations: 1.046 MB / 333.9 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007049/0.01818, allocations: 389 kB / 334.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007931/0.01897, allocations: 0.53 MB / 334.8 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003727/0.01934, allocations: 263 kB / 335 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001148/0.01946, allocations: 91.78 kB / 335.1 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003004/0.01976, allocations: 156.9 kB / 335.3 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002069/0.01996, allocations: 209.7 kB / 335.5 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003519/0.02031, allocations: 286.7 kB / 335.7 MB, free: 9.246 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00142/0.02173, allocations: 1.202 MB / 336.9 MB, free: 8.336 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.02174, allocations: 0 / 336.9 MB, free: 8.336 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.02174, allocations: 0 / 336.9 MB, free: 8.336 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.101e-05/0.02176, allocations: 1.562 kB / 337 MB, free: 8.336 MB / 302.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.001651/0.02341, allocations: 0.9786 MB / 337.9 MB, free: 7.555 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.02345, allocations: 9.688 kB / 337.9 MB, free: 7.555 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002808/0.02373, allocations: 101 kB / 338 MB, free: 7.504 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008278/0.02456, allocations: 462.8 kB / 338.5 MB, free: 7.117 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.465e-05/0.02462, allocations: 59.28 kB / 338.5 MB, free: 7.094 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001241/0.02474, allocations: 92.08 kB / 338.6 MB, free: 7.059 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001475/0.02622, allocations: 0.8008 MB / 339.4 MB, free: 6.523 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.317e-05/0.02625, allocations: 4.188 kB / 339.4 MB, free: 6.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.939e-05/0.02632, allocations: 36.38 kB / 339.5 MB, free: 6.484 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.58e-05/0.02634, allocations: 27.94 kB / 339.5 MB, free: 6.457 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001077/0.02742, allocations: 0.4918 MB / 340 MB, free: 5.965 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00361/0.03103, allocations: 2.478 MB / 342.5 MB, free: 3.383 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006944/0.03173, allocations: 206.2 kB / 342.7 MB, free: 3.168 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000206/0.03193, allocations: 100.8 kB / 342.8 MB, free: 3.066 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001583/0.03209, allocations: 19.98 kB / 342.8 MB, free: 3.047 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.966e-05/0.03214, allocations: 38.56 kB / 342.8 MB, free: 3 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.655e-06/0.03214, allocations: 0 / 342.8 MB, free: 3 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002731/0.03487, allocations: 1.125 MB / 344 MB, free: 1.816 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.237e-05/0.03492, allocations: 55.41 kB / 344 MB, free: 1.75 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003653/0.03528, allocations: 317.6 kB / 344.3 MB, free: 1.434 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.623e-05/0.03532, allocations: 33.7 kB / 344.4 MB, free: 1.395 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00028/0.0356, allocations: 411.7 kB / 344.8 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/0.03571, allocations: 138.8 kB / 344.9 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001411/0.03585, allocations: 98.08 kB / 345 MB, free: 0.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001864/0.03604, allocations: 346.8 kB / 345.3 MB, free: 412 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002139/0.03625, allocations: 105 kB / 345.4 MB, free: 308 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000348/0.0366, allocations: 257.8 kB / 345.7 MB, free: 15.98 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007124/0.03731, allocations: 392.9 kB / 346.1 MB, free: 15.54 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.03732, allocations: 3.938 kB / 346.1 MB, free: 15.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008023/0.03812, allocations: 461.4 kB / 346.5 MB, free: 15.07 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.03814, allocations: 8 kB / 346.5 MB, free: 15.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.03815, allocations: 4 kB / 346.5 MB, free: 15.06 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002085/0.03836, allocations: 36.83 kB / 346.6 MB, free: 15.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003722/0.03873, allocations: 111.8 kB / 346.7 MB, free: 14.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004574/0.03919, allocations: 0.5528 MB / 347.2 MB, free: 14.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002163/0.03941, allocations: 24 kB / 347.3 MB, free: 14.31 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.542e-05/0.03945, allocations: 24 kB / 347.3 MB, free: 14.29 MB / 318.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.0003495/0.0398, allocations: 221.6 kB / 347.5 MB, free: 14.06 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.327e-05/0.03989, allocations: 35.77 kB / 347.5 MB, free: 14.03 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007659/0.04066, allocations: 318.5 kB / 347.8 MB, free: 13.71 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.715e-06/0.04067, allocations: 4 kB / 347.8 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.04068, allocations: 7.938 kB / 347.8 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.829e-06/0.04069, allocations: 7.984 kB / 347.9 MB, free: 13.69 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001442/0.04213, allocations: 0.8441 MB / 348.7 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.04213, allocations: 0 / 348.7 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003721/0.0425, allocations: 75.91 kB / 348.8 MB, free: 12.71 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001628/0.04267, allocations: 36.83 kB / 348.8 MB, free: 12.68 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.778e-05/0.04269, allocations: 8 kB / 348.8 MB, free: 12.67 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004382/0.04313, allocations: 0.5564 MB / 349.4 MB, free: 12.09 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.04314, allocations: 3.938 kB / 349.4 MB, free: 12.08 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009853/0.04412, allocations: 0.5329 MB / 349.9 MB, free: 11.51 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.54e-05/0.04419, allocations: 35.75 kB / 349.9 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.813e-05/0.04425, allocations: 16.03 kB / 350 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001588/0.0444, allocations: 8 kB / 350 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.782e-05/0.04447, allocations: 32.12 kB / 350 MB, free: 11.42 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.644e-05/0.0445, allocations: 8 kB / 350 MB, free: 11.41 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000233/0.04473, allocations: 223.2 kB / 350.2 MB, free: 11.2 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.04473, allocations: 0 / 350.2 MB, free: 11.2 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005856/0.04532, allocations: 119.9 kB / 350.3 MB, free: 11.08 MB / 318.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.0002086/0.04553, allocations: 129.4 kB / 350.5 MB, free: 10.95 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006545/0.04618, allocations: 292.6 kB / 350.8 MB, free: 10.66 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.04618, allocations: 0 / 350.8 MB, free: 10.66 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003668/0.04655, allocations: 140.1 kB / 350.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005552/0.0471, allocations: 69.39 kB / 351 MB, free: 10.46 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002539/0.04964, allocations: 1.376 MB / 352.3 MB, free: 9.035 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004268/0.05007, allocations: 325.6 kB / 352.7 MB, free: 8.695 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001656/0.05024, allocations: 50.59 kB / 352.7 MB, free: 8.648 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.528e-05/0.05031, allocations: 28.5 kB / 352.7 MB, free: 8.621 MB / 318.1 MB Notification: Performance of SimCode: time 6.31e-07/0.05031, allocations: 0 / 352.7 MB, free: 8.621 MB / 318.1 MB Notification: Performance of Templates: time 0.00939/0.0597, allocations: 3.52 MB / 356.3 MB, free: 5.164 MB / 318.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.2291422337293625]