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.002121/0.002121, allocations: 99.53 kB / 20.97 MB, free: 3.453 MB / 18.57 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.002578/0.002578, allocations: 156.8 kB / 24.27 MB, free: 156 kB / 18.57 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.607/1.607, allocations: 177 MB / 204.4 MB, free: 5.617 MB / 186.7 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 2.154e-06/2.154e-06, allocations: 0 / 272.2 MB, free: 1.82 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.05e-05/3.265e-05, allocations: 2.312 kB / 272.2 MB, free: 1.816 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.01113/0.01116, allocations: 5.273 MB / 277.5 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005693/0.01685, allocations: 2.087 MB / 279.5 MB, free: 10.42 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007392/0.01759, allocations: 51.56 kB / 279.6 MB, free: 10.37 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006958/0.01829, allocations: 206.2 kB / 279.8 MB, free: 10.17 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006296/0.01892, allocations: 186.2 kB / 280 MB, free: 9.984 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001331/0.02025, allocations: 407 kB / 280.4 MB, free: 9.586 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001743/0.02199, allocations: 1.044 MB / 281.4 MB, free: 8.539 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009686/0.02296, allocations: 393.6 kB / 281.8 MB, free: 8.129 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001038/0.024, allocations: 0.5341 MB / 282.3 MB, free: 7.594 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005723/0.02457, allocations: 267.2 kB / 282.6 MB, free: 7.332 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001799/0.02475, allocations: 92 kB / 282.7 MB, free: 7.242 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004016/0.02515, allocations: 163.8 kB / 282.8 MB, free: 7.082 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000294/0.02545, allocations: 211.3 kB / 283.1 MB, free: 6.875 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004872/0.02593, allocations: 291.3 kB / 283.3 MB, free: 6.59 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002022/0.02796, allocations: 1.211 MB / 284.6 MB, free: 5.375 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.02796, allocations: 4 kB / 284.6 MB, free: 5.371 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.02796, allocations: 0 / 284.6 MB, free: 5.371 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.487e-05/0.02798, allocations: 0 / 284.6 MB, free: 5.371 MB / 266.7 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.002406/0.03038, allocations: 1.146 MB / 285.7 MB, free: 4.188 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.389e-05/0.03044, allocations: 15.98 kB / 285.7 MB, free: 4.172 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004914/0.03093, allocations: 168.3 kB / 285.9 MB, free: 4.008 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001169/0.0321, allocations: 486.4 kB / 286.4 MB, free: 3.504 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.003e-05/0.03219, allocations: 66.38 kB / 286.4 MB, free: 3.438 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001916/0.03238, allocations: 92.31 kB / 286.5 MB, free: 3.348 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002171/0.03455, allocations: 0.8326 MB / 287.3 MB, free: 2.469 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.673e-05/0.0346, allocations: 4.172 kB / 287.3 MB, free: 2.465 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.718e-05/0.03469, allocations: 36.38 kB / 287.4 MB, free: 2.43 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.232e-05/0.03472, allocations: 27.94 kB / 287.4 MB, free: 2.402 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00143/0.03616, allocations: 431.6 kB / 287.8 MB, free: 1.977 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1516/0.1878, allocations: 3.321 MB / 291.2 MB, free: 26.16 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005755/0.1883, allocations: 228.8 kB / 291.4 MB, free: 26.11 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001608/0.1885, allocations: 93.02 kB / 291.5 MB, free: 26.1 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001176/0.1886, allocations: 18.75 kB / 291.5 MB, free: 26.1 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.764e-05/0.1886, allocations: 39.62 kB / 291.5 MB, free: 26.06 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.994e-06/0.1886, allocations: 1.188 kB / 291.5 MB, free: 26.06 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.002216/0.1909, allocations: 1.143 MB / 292.7 MB, free: 25.69 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.628e-05/0.1909, allocations: 59 kB / 292.7 MB, free: 25.63 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003669/0.1913, allocations: 445.2 kB / 293.2 MB, free: 25.45 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.619e-05/0.1913, allocations: 30.95 kB / 293.2 MB, free: 25.42 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002012/0.1915, allocations: 474.2 kB / 293.7 MB, free: 25.17 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.048e-05/0.1916, allocations: 153 kB / 293.8 MB, free: 25.09 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001254/0.1917, allocations: 108 kB / 293.9 MB, free: 25.07 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.1918, allocations: 0.5464 MB / 294.5 MB, free: 24.57 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001847/0.192, allocations: 102.9 kB / 294.6 MB, free: 24.56 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002647/0.1922, allocations: 318.1 kB / 294.9 MB, free: 24.28 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000461/0.1927, allocations: 465.2 kB / 295.3 MB, free: 23.93 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.1927, allocations: 1.156 kB / 295.3 MB, free: 23.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006709/0.1934, allocations: 484.1 kB / 295.8 MB, free: 23.72 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.1934, allocations: 7.031 kB / 295.8 MB, free: 23.72 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.1934, allocations: 9.125 kB / 295.8 MB, free: 23.72 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001944/0.1936, allocations: 46.06 kB / 295.9 MB, free: 23.7 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003367/0.1939, allocations: 113.6 kB / 296 MB, free: 23.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003048/0.1942, allocations: 0.8206 MB / 296.8 MB, free: 22.88 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000178/0.1944, allocations: 15.28 kB / 296.8 MB, free: 22.87 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.67e-05/0.1945, allocations: 25.78 kB / 296.8 MB, free: 22.86 MB / 266.7 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.0002168/0.1947, allocations: 239.3 kB / 297.1 MB, free: 22.65 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.157e-05/0.1947, allocations: 53.16 kB / 297.1 MB, free: 22.62 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005799/0.1953, allocations: 329.8 kB / 297.4 MB, free: 22.46 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.1953, allocations: 4.359 kB / 297.4 MB, free: 22.46 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.1953, allocations: 0 / 297.4 MB, free: 22.46 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.1953, allocations: 3.188 kB / 297.4 MB, free: 22.46 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001382/0.1967, allocations: 1.076 MB / 298.5 MB, free: 21.8 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.626e-06/0.1967, allocations: 5.219 kB / 298.5 MB, free: 21.8 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003382/0.1971, allocations: 76.34 kB / 298.6 MB, free: 21.79 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001332/0.1972, allocations: 38.95 kB / 298.6 MB, free: 21.77 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.306e-05/0.1972, allocations: 12.52 kB / 298.6 MB, free: 21.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002202/0.1974, allocations: 0.8216 MB / 299.5 MB, free: 20.95 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.1974, allocations: 1.562 kB / 299.5 MB, free: 20.95 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000647/0.1981, allocations: 0.6198 MB / 300.1 MB, free: 20.55 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.082e-05/0.1981, allocations: 33.02 kB / 300.1 MB, free: 20.53 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.606e-05/0.1982, allocations: 13.48 kB / 300.1 MB, free: 20.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001377/0.1983, allocations: 6.938 kB / 300.1 MB, free: 20.52 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.432e-05/0.1984, allocations: 33.55 kB / 300.2 MB, free: 20.51 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.129e-05/0.1984, allocations: 9.828 kB / 300.2 MB, free: 20.51 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002001/0.1986, allocations: 277 kB / 300.5 MB, free: 20.34 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1986, allocations: 0 / 300.5 MB, free: 20.34 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000523/0.1991, allocations: 130.1 kB / 300.6 MB, free: 20.32 MB / 266.7 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.000145/0.1993, allocations: 113.8 kB / 300.7 MB, free: 20.23 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005852/0.1999, allocations: 334.1 kB / 301 MB, free: 20.12 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1999, allocations: 0 / 301 MB, free: 20.12 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002623/0.2001, allocations: 149.5 kB / 301.2 MB, free: 20.07 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004973/0.2006, allocations: 74.16 kB / 301.2 MB, free: 20.04 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001951/0.2026, allocations: 1.421 MB / 302.7 MB, free: 19.13 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003181/0.2029, allocations: 332.2 kB / 303 MB, free: 19.02 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001595/0.2031, allocations: 46.7 kB / 303 MB, free: 19 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.604e-05/0.2031, allocations: 32.38 kB / 303.1 MB, free: 18.99 MB / 266.7 MB Notification: Performance of SimCode: time 1.332e-06/0.2031, allocations: 0 / 303.1 MB, free: 18.99 MB / 266.7 MB Notification: Performance of Templates: time 0.008573/0.2117, allocations: 3.556 MB / 306.6 MB, free: 18.15 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 240] 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.726698778918944]