Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001969/0.001969, allocations: 103.5 kB / 21.74 MB, free: 2.688 MB / 18.57 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.00193/0.00193, allocations: 157.9 kB / 25.03 MB, free: 8.926 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.327/1.327, allocations: 158.6 MB / 186.8 MB, free: 2.918 MB / 170.7 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 4.388e-06/4.388e-06, allocations: 3.984 kB / 250.4 MB, free: 7.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.022e-05/3.461e-05, allocations: 2.312 kB / 250.4 MB, free: 7.836 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.008084/0.008119, allocations: 5.233 MB / 255.6 MB, free: 2.57 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00412/0.01224, allocations: 2.072 MB / 257.7 MB, free: 496 kB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005333/0.01277, allocations: 51.56 kB / 257.7 MB, free: 444 kB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004906/0.01326, allocations: 210.2 kB / 257.9 MB, free: 232 kB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004085/0.01367, allocations: 174.3 kB / 258.1 MB, free: 56 kB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008869/0.01456, allocations: 399 kB / 258.5 MB, free: 15.66 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001217/0.01577, allocations: 1.036 MB / 259.5 MB, free: 14.62 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006972/0.01647, allocations: 397.5 kB / 259.9 MB, free: 14.21 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000722/0.01719, allocations: 0.5224 MB / 260.4 MB, free: 13.68 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006799/0.01787, allocations: 275.2 kB / 260.7 MB, free: 13.41 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001383/0.01801, allocations: 92 kB / 260.8 MB, free: 13.32 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002903/0.0183, allocations: 147.9 kB / 260.9 MB, free: 13.18 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002283/0.01853, allocations: 203.3 kB / 261.1 MB, free: 12.98 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000365/0.0189, allocations: 295.3 kB / 261.4 MB, free: 12.69 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001546/0.02044, allocations: 1.199 MB / 262.6 MB, free: 11.49 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.02045, allocations: 0 / 262.6 MB, free: 11.49 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.02045, allocations: 0 / 262.6 MB, free: 11.49 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.241e-05/0.02046, allocations: 0 / 262.6 MB, free: 11.49 MB / 250.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.001797/0.02226, allocations: 1.146 MB / 263.8 MB, free: 10.3 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.02229, allocations: 11.98 kB / 263.8 MB, free: 10.29 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002662/0.02256, allocations: 164.4 kB / 263.9 MB, free: 10.13 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008295/0.02339, allocations: 490.4 kB / 264.4 MB, free: 9.625 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.76e-05/0.02346, allocations: 62.38 kB / 264.5 MB, free: 9.562 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001453/0.0236, allocations: 92.33 kB / 264.6 MB, free: 9.473 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001543/0.02515, allocations: 0.8365 MB / 265.4 MB, free: 8.59 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.794e-05/0.02518, allocations: 4.172 kB / 265.4 MB, free: 8.586 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.956e-05/0.02525, allocations: 36.38 kB / 265.4 MB, free: 8.551 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.861e-05/0.02528, allocations: 27.94 kB / 265.5 MB, free: 8.523 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009795/0.02626, allocations: 427.7 kB / 265.9 MB, free: 8.105 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00461/0.03087, allocations: 3.329 MB / 269.2 MB, free: 4.66 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007943/0.03167, allocations: 215.7 kB / 269.4 MB, free: 4.438 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002546/0.03192, allocations: 99.59 kB / 269.5 MB, free: 4.336 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001087/0.03203, allocations: 15.98 kB / 269.5 MB, free: 4.32 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.204e-05/0.03207, allocations: 45.38 kB / 269.6 MB, free: 4.266 MB / 250.7 MB Notification: Performance of pre-optimization done (n=30): time 1.853e-06/0.03207, allocations: 0 / 269.6 MB, free: 4.266 MB / 250.7 MB Notification: Performance of matching and sorting (n=35): time 0.002594/0.03467, allocations: 1.149 MB / 270.7 MB, free: 3.051 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.592e-05/0.03472, allocations: 59.41 kB / 270.8 MB, free: 2.98 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005015/0.03523, allocations: 434.2 kB / 271.2 MB, free: 2.539 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.069e-05/0.03526, allocations: 29.7 kB / 271.2 MB, free: 2.504 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003959/0.03565, allocations: 474.4 kB / 271.7 MB, free: 2.035 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000143/0.03579, allocations: 150.8 kB / 271.9 MB, free: 1.887 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001575/0.03595, allocations: 103.8 kB / 272 MB, free: 1.777 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0003292/0.03628, allocations: 0.5508 MB / 272.5 MB, free: 1.215 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002386/0.03652, allocations: 101 kB / 272.6 MB, free: 1.117 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004188/0.03694, allocations: 322.6 kB / 272.9 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006693/0.03761, allocations: 457 kB / 273.4 MB, free: 188 kB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.738e-06/0.03761, allocations: 3.938 kB / 273.4 MB, free: 184 kB / 250.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008539/0.03847, allocations: 484.2 kB / 273.8 MB, free: 15.69 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.03849, allocations: 8 kB / 273.9 MB, free: 15.68 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.03849, allocations: 4 kB / 273.9 MB, free: 15.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002028/0.0387, allocations: 39.66 kB / 273.9 MB, free: 15.64 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003686/0.03907, allocations: 112.4 kB / 274 MB, free: 15.53 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008752/0.03994, allocations: 0.8273 MB / 274.8 MB, free: 14.67 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001823/0.04012, allocations: 15.94 kB / 274.8 MB, free: 14.65 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.127e-05/0.04016, allocations: 24 kB / 274.9 MB, free: 14.63 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.0003427/0.04051, allocations: 248.4 kB / 275.1 MB, free: 14.38 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.828e-05/0.0406, allocations: 47.77 kB / 275.2 MB, free: 14.33 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006989/0.04129, allocations: 324.9 kB / 275.5 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.0413, allocations: 4 kB / 275.5 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.04131, allocations: 11.8 kB / 275.5 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.04132, allocations: 3.984 kB / 275.5 MB, free: 13.98 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001739/0.04306, allocations: 1.074 MB / 276.6 MB, free: 12.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.04306, allocations: 4 kB / 276.6 MB, free: 12.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003749/0.04343, allocations: 75.89 kB / 276.7 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000151/0.04358, allocations: 47.64 kB / 276.7 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.612e-05/0.04361, allocations: 8 kB / 276.7 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000588/0.0442, allocations: 0.8236 MB / 277.5 MB, free: 11.85 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.0442, allocations: 3.938 kB / 277.5 MB, free: 11.85 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009199/0.04512, allocations: 0.6167 MB / 278.1 MB, free: 11.18 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.274e-05/0.0452, allocations: 31.77 kB / 278.2 MB, free: 11.15 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.443e-05/0.04525, allocations: 19.92 kB / 278.2 MB, free: 11.13 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000145/0.04539, allocations: 8 kB / 278.2 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.75e-05/0.04546, allocations: 27.89 kB / 278.2 MB, free: 11.1 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.421e-05/0.04549, allocations: 12.03 kB / 278.2 MB, free: 11.09 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002934/0.04578, allocations: 271 kB / 278.5 MB, free: 10.82 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.04578, allocations: 0 / 278.5 MB, free: 10.82 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005115/0.04629, allocations: 120 kB / 278.6 MB, free: 10.7 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.0001962/0.04649, allocations: 119.1 kB / 278.7 MB, free: 10.58 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006803/0.04717, allocations: 321.1 kB / 279.1 MB, free: 10.26 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.04717, allocations: 0 / 279.1 MB, free: 10.26 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003081/0.04748, allocations: 159.4 kB / 279.2 MB, free: 10.1 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005184/0.048, allocations: 81.02 kB / 279.3 MB, free: 10.03 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002411/0.05041, allocations: 1.421 MB / 280.7 MB, free: 8.551 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003776/0.05079, allocations: 321.6 kB / 281 MB, free: 8.211 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001441/0.05093, allocations: 43.34 kB / 281.1 MB, free: 8.164 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.532e-05/0.05101, allocations: 36.48 kB / 281.1 MB, free: 8.129 MB / 266.7 MB Notification: Performance of SimCode: time 5.81e-07/0.05101, allocations: 0 / 281.1 MB, free: 8.129 MB / 266.7 MB Notification: Performance of Templates: time 0.01006/0.06107, allocations: 3.53 MB / 284.6 MB, free: 4.637 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.400891805998981]