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.001413/0.001413, allocations: 85.58 kB / 20.68 MB, free: 1.035 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.001426/0.001426, allocations: 157.5 kB / 23.95 MB, free: 4.168 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.46/1.46, allocations: 177 MB / 204.1 MB, free: 9.172 MB / 190.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 1.342e-06/1.342e-06, allocations: 0 / 325 MB, free: 0.5 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.662e-05/1.796e-05, allocations: 2.281 kB / 325 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006229/0.006247, allocations: 4.85 MB / 329.9 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003733/0.009979, allocations: 2.063 MB / 331.9 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004386/0.01042, allocations: 51.16 kB / 332 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004598/0.01088, allocations: 210.3 kB / 332.2 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000369/0.01125, allocations: 176.5 kB / 332.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008524/0.0121, allocations: 415 kB / 332.7 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00102/0.01312, allocations: 1.042 MB / 333.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006163/0.01374, allocations: 396.9 kB / 334.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006366/0.01437, allocations: 0.523 MB / 334.7 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003577/0.01473, allocations: 267.4 kB / 335 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001099/0.01484, allocations: 90.97 kB / 335 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002523/0.01509, allocations: 152.9 kB / 335.2 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001944/0.01529, allocations: 210.1 kB / 335.4 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000315/0.0156, allocations: 289.8 kB / 335.7 MB, free: 9.316 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001222/0.01682, allocations: 1.203 MB / 336.9 MB, free: 8.406 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.01683, allocations: 0 / 336.9 MB, free: 8.406 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.01683, allocations: 0 / 336.9 MB, free: 8.406 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.859e-05/0.01685, allocations: 1.344 kB / 336.9 MB, free: 8.406 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.001484/0.01833, allocations: 0.9706 MB / 337.9 MB, free: 7.633 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.01837, allocations: 13.95 kB / 337.9 MB, free: 7.629 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002662/0.01864, allocations: 101.3 kB / 338 MB, free: 7.578 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008324/0.01947, allocations: 458.2 kB / 338.4 MB, free: 7.195 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.773e-05/0.01953, allocations: 64.38 kB / 338.5 MB, free: 7.168 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001277/0.01965, allocations: 87.92 kB / 338.6 MB, free: 7.137 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001436/0.02109, allocations: 0.8029 MB / 339.4 MB, free: 6.574 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.906e-05/0.02113, allocations: 12.11 kB / 339.4 MB, free: 6.562 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.396e-05/0.0212, allocations: 36.38 kB / 339.4 MB, free: 6.527 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.355e-05/0.02123, allocations: 27.88 kB / 339.4 MB, free: 6.5 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001034/0.02226, allocations: 499.6 kB / 339.9 MB, free: 6.012 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003362/0.02562, allocations: 2.489 MB / 342.4 MB, free: 3.418 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005963/0.02622, allocations: 206.7 kB / 342.6 MB, free: 3.203 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001908/0.02641, allocations: 92.81 kB / 342.7 MB, free: 3.109 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001196/0.02653, allocations: 19.98 kB / 342.7 MB, free: 3.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.823e-05/0.02657, allocations: 42.5 kB / 342.8 MB, free: 3.039 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.863e-06/0.02657, allocations: 0 / 342.8 MB, free: 3.039 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002502/0.02907, allocations: 1.127 MB / 343.9 MB, free: 1.852 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.562e-05/0.02914, allocations: 59.41 kB / 344 MB, free: 1.781 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003866/0.02952, allocations: 313.6 kB / 344.3 MB, free: 1.469 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.916e-05/0.02955, allocations: 29.7 kB / 344.3 MB, free: 1.434 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003044/0.02986, allocations: 411.7 kB / 344.7 MB, free: 1.027 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001717/0.03003, allocations: 138.8 kB / 344.8 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001473/0.03018, allocations: 90.14 kB / 344.9 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.00023/0.03041, allocations: 350.8 kB / 345.3 MB, free: 456 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002275/0.03063, allocations: 108.9 kB / 345.4 MB, free: 348 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000337/0.03097, allocations: 253.8 kB / 345.6 MB, free: 28 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005991/0.03157, allocations: 389 kB / 346 MB, free: 15.58 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.354e-06/0.03158, allocations: 7.938 kB / 346 MB, free: 15.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007687/0.03235, allocations: 461.8 kB / 346.5 MB, free: 15.11 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.03237, allocations: 8 kB / 346.5 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.03237, allocations: 4 kB / 346.5 MB, free: 15.1 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001999/0.03257, allocations: 36.84 kB / 346.5 MB, free: 15.06 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003629/0.03294, allocations: 107.8 kB / 346.6 MB, free: 14.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004703/0.03341, allocations: 0.5641 MB / 347.2 MB, free: 14.37 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001795/0.03359, allocations: 15.94 kB / 347.2 MB, free: 14.35 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.102e-05/0.03363, allocations: 24 kB / 347.2 MB, free: 14.33 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.0002874/0.03392, allocations: 221.8 kB / 347.4 MB, free: 14.1 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.148e-05/0.03399, allocations: 39.77 kB / 347.5 MB, free: 14.06 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006434/0.03463, allocations: 318.5 kB / 347.8 MB, free: 13.74 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.03464, allocations: 4 kB / 347.8 MB, free: 13.74 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.126e-06/0.03464, allocations: 3.938 kB / 347.8 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.03465, allocations: 0 / 347.8 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001349/0.036, allocations: 0.8455 MB / 348.6 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.036, allocations: 4 kB / 348.6 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003717/0.03638, allocations: 83.83 kB / 348.7 MB, free: 12.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001294/0.03651, allocations: 36.78 kB / 348.8 MB, free: 12.71 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.714e-05/0.03653, allocations: 12 kB / 348.8 MB, free: 12.7 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003915/0.03692, allocations: 0.5485 MB / 349.3 MB, free: 12.13 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.03693, allocations: 3.938 kB / 349.3 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008728/0.0378, allocations: 0.5448 MB / 349.9 MB, free: 11.54 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.07e-05/0.03785, allocations: 27.77 kB / 349.9 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.931e-05/0.0379, allocations: 12.12 kB / 349.9 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001591/0.03806, allocations: 11.98 kB / 349.9 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.696e-05/0.03813, allocations: 35.92 kB / 350 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.508e-05/0.03815, allocations: 12 kB / 350 MB, free: 11.45 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002268/0.03838, allocations: 215.2 kB / 350.2 MB, free: 11.23 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.03838, allocations: 0 / 350.2 MB, free: 11.23 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005097/0.03889, allocations: 116 kB / 350.3 MB, free: 11.12 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.0001978/0.03909, allocations: 132.9 kB / 350.4 MB, free: 10.98 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006088/0.03969, allocations: 285 kB / 350.7 MB, free: 10.71 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.0397, allocations: 0 / 350.7 MB, free: 10.71 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002828/0.03998, allocations: 140.2 kB / 350.8 MB, free: 10.57 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005236/0.0405, allocations: 69.44 kB / 350.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002305/0.04281, allocations: 1.371 MB / 352.3 MB, free: 9.09 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003617/0.04317, allocations: 329.6 kB / 352.6 MB, free: 8.746 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001457/0.04332, allocations: 55.19 kB / 352.6 MB, free: 8.695 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.979e-05/0.04338, allocations: 32.44 kB / 352.7 MB, free: 8.664 MB / 318.1 MB Notification: Performance of SimCode: time 3.2e-07/0.04339, allocations: 0 / 352.7 MB, free: 8.664 MB / 318.1 MB Notification: Performance of Templates: time 0.009433/0.05282, allocations: 3.506 MB / 356.2 MB, free: 5.215 MB / 318.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.328955601900816]