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.001874/0.001874, allocations: 111 kB / 21.18 MB, free: 0.6758 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.002203/0.002203, allocations: 208.2 kB / 24.48 MB, free: 3.977 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.486/1.486, allocations: 230.6 MB / 258.3 MB, free: 7.805 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.001518/0.001518, allocations: 51.91 kB / 379 MB, free: 2.504 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.213/0.2146, allocations: 53.36 MB / 432.3 MB, free: 6.742 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006731/0.2213, allocations: 4.846 MB / 437.2 MB, free: 1.879 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003407/0.2247, allocations: 2.056 MB / 439.2 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003516/0.225, allocations: 55.56 kB / 439.3 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004465/0.2255, allocations: 206.2 kB / 439.5 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003555/0.2259, allocations: 170.4 kB / 439.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008094/0.2267, allocations: 403 kB / 440 MB, free: 14.99 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001026/0.2277, allocations: 1.017 MB / 441.1 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006514/0.2283, allocations: 417.4 kB / 441.5 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004188/0.2288, allocations: 358.8 kB / 441.8 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004026/0.2292, allocations: 366.3 kB / 442.2 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001221/0.2293, allocations: 92 kB / 442.3 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002612/0.2295, allocations: 155.9 kB / 442.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001944/0.2297, allocations: 207.4 kB / 442.6 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003424/0.2301, allocations: 346.5 kB / 443 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001224/0.2313, allocations: 1.205 MB / 444.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.2313, allocations: 0 / 444.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2313, allocations: 0 / 444.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.16e-05/0.2313, allocations: 0 / 444.2 MB, free: 10.84 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.001485/0.2328, allocations: 0.9843 MB / 445.1 MB, free: 9.828 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.2328, allocations: 8.031 kB / 445.2 MB, free: 9.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002707/0.2331, allocations: 104.4 kB / 445.3 MB, free: 9.719 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008291/0.2339, allocations: 456.3 kB / 445.7 MB, free: 9.246 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.057e-05/0.234, allocations: 74.3 kB / 445.8 MB, free: 9.172 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001339/0.2341, allocations: 84.33 kB / 445.9 MB, free: 9.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001436/0.2356, allocations: 0.8087 MB / 446.7 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.197e-05/0.2356, allocations: 3.938 kB / 446.7 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.303e-05/0.2357, allocations: 40 kB / 446.7 MB, free: 8.203 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.027e-05/0.2357, allocations: 20 kB / 446.7 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009978/0.2367, allocations: 499.6 kB / 447.2 MB, free: 7.691 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003181/0.2399, allocations: 2.481 MB / 449.7 MB, free: 5.109 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005408/0.2404, allocations: 203.8 kB / 449.9 MB, free: 4.898 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001822/0.2406, allocations: 100.8 kB / 450 MB, free: 4.797 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.454e-05/0.2407, allocations: 15.98 kB / 450 MB, free: 4.781 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.565e-05/0.2407, allocations: 39 kB / 450 MB, free: 4.734 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.633e-06/0.2407, allocations: 4 kB / 450 MB, free: 4.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002366/0.2431, allocations: 1.112 MB / 451.2 MB, free: 3.559 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.092e-05/0.2431, allocations: 55.41 kB / 451.2 MB, free: 3.492 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003419/0.2435, allocations: 321.6 kB / 451.5 MB, free: 3.172 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.007e-05/0.2435, allocations: 33.69 kB / 451.6 MB, free: 3.133 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002874/0.2438, allocations: 407.7 kB / 452 MB, free: 2.727 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001164/0.2439, allocations: 138.8 kB / 452.1 MB, free: 2.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001256/0.244, allocations: 90.14 kB / 452.2 MB, free: 2.496 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.2442, allocations: 354.7 kB / 452.5 MB, free: 2.141 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002093/0.2444, allocations: 108.9 kB / 452.6 MB, free: 2.035 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003334/0.2448, allocations: 252.8 kB / 452.9 MB, free: 1.727 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005748/0.2453, allocations: 400.7 kB / 453.3 MB, free: 1.273 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.2453, allocations: 0 / 453.3 MB, free: 1.273 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007684/0.2461, allocations: 461.4 kB / 453.7 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.2461, allocations: 8 kB / 453.7 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.2461, allocations: 4 kB / 453.7 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001767/0.2463, allocations: 32.84 kB / 453.8 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003651/0.2467, allocations: 116.4 kB / 453.9 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004505/0.2471, allocations: 0.5601 MB / 454.4 MB, free: 68 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001823/0.2473, allocations: 19.98 kB / 454.5 MB, free: 48 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.887e-05/0.2473, allocations: 20 kB / 454.5 MB, free: 28 kB / 350.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.0002739/0.2476, allocations: 217.6 kB / 454.7 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.807e-05/0.2477, allocations: 39.77 kB / 454.7 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000633/0.2483, allocations: 333.3 kB / 455.1 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.2483, allocations: 4.062 kB / 455.1 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.2483, allocations: 4 kB / 455.1 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.2483, allocations: 4.031 kB / 455.1 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001323/0.2497, allocations: 0.8402 MB / 455.9 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.2497, allocations: 0 / 455.9 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000394/0.25, allocations: 83.89 kB / 456 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00012/0.2502, allocations: 28.84 kB / 456 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.031e-05/0.2502, allocations: 12.16 kB / 456 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003791/0.2506, allocations: 0.5561 MB / 456.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.2506, allocations: 4.031 kB / 456.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008075/0.2514, allocations: 0.5448 MB / 457.1 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.751e-05/0.2514, allocations: 35.7 kB / 457.2 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.75e-05/0.2515, allocations: 8 kB / 457.2 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001646/0.2517, allocations: 11.98 kB / 457.2 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.585e-05/0.2517, allocations: 19.97 kB / 457.2 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.845e-05/0.2517, allocations: 24.05 kB / 457.2 MB, free: 13.14 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002186/0.252, allocations: 211.2 kB / 457.4 MB, free: 12.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.252, allocations: 0 / 457.4 MB, free: 12.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004805/0.2524, allocations: 120 kB / 457.6 MB, free: 12.82 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.0001568/0.2526, allocations: 123.1 kB / 457.7 MB, free: 12.69 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006412/0.2532, allocations: 308.4 kB / 458 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.2532, allocations: 0 / 458 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000275/0.2535, allocations: 131.8 kB / 458.1 MB, free: 12.26 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005115/0.254, allocations: 70.09 kB / 458.2 MB, free: 12.19 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002491/0.2565, allocations: 1.597 MB / 459.8 MB, free: 10.55 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003609/0.2569, allocations: 325.6 kB / 460.1 MB, free: 10.21 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001524/0.257, allocations: 50.39 kB / 460.1 MB, free: 10.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.202e-05/0.2571, allocations: 39.42 kB / 460.2 MB, free: 10.12 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2571, allocations: 3.938 kB / 460.2 MB, free: 10.11 MB / 366.1 MB Notification: Performance of Templates: time 0.01031/0.2674, allocations: 4.54 MB / 464.7 MB, free: 5.633 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 -s gbode -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: 4.3177401819993975]