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.0009536/0.0009536, allocations: 80.8 kB / 22.28 MB, free: 2.207 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.0009843/0.0009843, allocations: 167.8 kB / 25.7 MB, free: 8.438 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 0.8594/0.8594, allocations: 158.6 MB / 187.6 MB, free: 2.773 MB / 170.7 MB " [Timeout remaining time 179] 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 1.823e-06/1.823e-06, allocations: 0 / 251.5 MB, free: 7.289 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.231e-05/2.414e-05, allocations: 6.312 kB / 251.5 MB, free: 7.281 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004695/0.004719, allocations: 5.174 MB / 256.7 MB, free: 2.074 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002663/0.007382, allocations: 2.122 MB / 258.8 MB, free: 15.94 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003478/0.00773, allocations: 47.62 kB / 258.9 MB, free: 15.89 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003317/0.008062, allocations: 202.2 kB / 259.1 MB, free: 15.69 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000277/0.008339, allocations: 186.2 kB / 259.2 MB, free: 15.51 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006386/0.008977, allocations: 398.9 kB / 259.6 MB, free: 15.12 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006566/0.009634, allocations: 1.036 MB / 260.7 MB, free: 14.08 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004139/0.01005, allocations: 405.5 kB / 261.1 MB, free: 13.65 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004085/0.01046, allocations: 0.5224 MB / 261.6 MB, free: 13.12 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002675/0.01072, allocations: 275.2 kB / 261.9 MB, free: 12.86 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.978e-05/0.0108, allocations: 92 kB / 261.9 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001683/0.01097, allocations: 151.8 kB / 262.1 MB, free: 12.62 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001298/0.0111, allocations: 207.3 kB / 262.3 MB, free: 12.41 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004455/0.01155, allocations: 295.3 kB / 262.6 MB, free: 12.12 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005477/0.0121, allocations: 0.6693 MB / 263.3 MB, free: 11.45 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.0121, allocations: 3.938 kB / 263.3 MB, free: 11.45 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.452e-06/0.0121, allocations: 0 / 263.3 MB, free: 11.45 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.384e-06/0.01211, allocations: 0 / 263.3 MB, free: 11.45 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.001088/0.0132, allocations: 0.9477 MB / 264.2 MB, free: 10.48 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.998e-05/0.01323, allocations: 11.98 kB / 264.2 MB, free: 10.46 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001089/0.01333, allocations: 128.8 kB / 264.3 MB, free: 10.34 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000422/0.01376, allocations: 396.9 kB / 264.7 MB, free: 9.93 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.651e-05/0.01379, allocations: 66.38 kB / 264.8 MB, free: 9.863 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.91e-05/0.01387, allocations: 92.36 kB / 264.9 MB, free: 9.773 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005821/0.01445, allocations: 0.5907 MB / 265.5 MB, free: 9.145 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.739e-05/0.01448, allocations: 16.06 kB / 265.5 MB, free: 9.129 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.568e-05/0.01452, allocations: 36.38 kB / 265.5 MB, free: 9.094 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.531e-05/0.01453, allocations: 23.94 kB / 265.5 MB, free: 9.07 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003047/0.01484, allocations: 220.6 kB / 265.8 MB, free: 8.852 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001674/0.01651, allocations: 2.147 MB / 267.9 MB, free: 6.609 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002742/0.01679, allocations: 143.2 kB / 268.1 MB, free: 6.461 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.34e-05/0.01684, allocations: 48.84 kB / 268.1 MB, free: 6.41 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.484e-05/0.0169, allocations: 19.98 kB / 268.1 MB, free: 6.391 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.135e-05/0.01693, allocations: 38.56 kB / 268.2 MB, free: 6.344 MB / 250.7 MB Notification: Performance of pre-optimization done (n=30): time 1.683e-06/0.01693, allocations: 0 / 268.2 MB, free: 6.344 MB / 250.7 MB Notification: Performance of matching and sorting (n=35): time 0.001091/0.01802, allocations: 0.8101 MB / 269 MB, free: 5.477 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.703e-05/0.01804, allocations: 55.41 kB / 269 MB, free: 5.41 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001591/0.0182, allocations: 290.8 kB / 269.3 MB, free: 5.113 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.586e-05/0.01822, allocations: 37.7 kB / 269.3 MB, free: 5.07 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001418/0.01836, allocations: 384.3 kB / 269.7 MB, free: 4.688 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.406e-05/0.01843, allocations: 138.8 kB / 269.9 MB, free: 4.551 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.255e-05/0.0185, allocations: 90.09 kB / 269.9 MB, free: 4.457 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.711e-05/0.01859, allocations: 350.7 kB / 270.3 MB, free: 4.105 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.994e-05/0.01864, allocations: 44.97 kB / 270.3 MB, free: 4.059 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001105/0.01876, allocations: 182 kB / 270.5 MB, free: 3.82 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004397/0.01919, allocations: 276.6 kB / 270.8 MB, free: 3.488 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.0192, allocations: 0 / 270.8 MB, free: 3.488 MB / 250.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0002615/0.01946, allocations: 293.9 kB / 271.1 MB, free: 3.191 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.01947, allocations: 4 kB / 271.1 MB, free: 3.188 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.01948, allocations: 8 kB / 271.1 MB, free: 3.18 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001109/0.01959, allocations: 32.77 kB / 271.1 MB, free: 3.145 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001932/0.01978, allocations: 111.8 kB / 271.2 MB, free: 3.035 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002165/0.02, allocations: 0.5367 MB / 271.8 MB, free: 2.473 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.457e-05/0.02008, allocations: 16 kB / 271.8 MB, free: 2.457 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.401e-05/0.02011, allocations: 16 kB / 271.8 MB, free: 2.441 MB / 250.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.0001149/0.02022, allocations: 148.6 kB / 271.9 MB, free: 2.285 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.579e-05/0.02026, allocations: 31.97 kB / 272 MB, free: 2.254 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002321/0.02049, allocations: 202.3 kB / 272.2 MB, free: 2.047 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.02049, allocations: 4 kB / 272.2 MB, free: 2.043 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-06/0.0205, allocations: 0 / 272.2 MB, free: 2.043 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.379e-06/0.0205, allocations: 3.938 kB / 272.2 MB, free: 2.039 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005783/0.02108, allocations: 0.571 MB / 272.7 MB, free: 1.426 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.02108, allocations: 3.938 kB / 272.7 MB, free: 1.422 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001935/0.02127, allocations: 75.91 kB / 272.8 MB, free: 1.348 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.328e-05/0.02135, allocations: 28.83 kB / 272.8 MB, free: 1.316 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.4e-05/0.02136, allocations: 8 kB / 272.8 MB, free: 1.309 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001807/0.02154, allocations: 0.525 MB / 273.4 MB, free: 0.7578 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.02155, allocations: 4 kB / 273.4 MB, free: 0.7539 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002685/0.02181, allocations: 382.4 kB / 273.8 MB, free: 348 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.905e-05/0.02184, allocations: 39.73 kB / 273.8 MB, free: 308 kB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.503e-05/0.02187, allocations: 8 kB / 273.8 MB, free: 300 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.083e-05/0.02194, allocations: 8 kB / 273.8 MB, free: 292 kB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.656e-05/0.02197, allocations: 35.83 kB / 273.8 MB, free: 256 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.161e-05/0.02199, allocations: 4 kB / 273.8 MB, free: 252 kB / 250.7 MB Notification: Performance of sorting global known variables: time 6.867e-05/0.02206, allocations: 108.6 kB / 274 MB, free: 144 kB / 250.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.02206, allocations: 0 / 274 MB, free: 144 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002548/0.02231, allocations: 119.9 kB / 274.1 MB, free: 24 kB / 250.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.0001317/0.02244, allocations: 100.3 kB / 274.2 MB, free: 15.92 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002483/0.02269, allocations: 201.3 kB / 274.4 MB, free: 15.72 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.006e-06/0.0227, allocations: 4 kB / 274.4 MB, free: 15.71 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.758e-05/0.0228, allocations: 97.81 kB / 274.5 MB, free: 15.62 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002652/0.02306, allocations: 77.5 kB / 274.5 MB, free: 15.55 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001303/0.02436, allocations: 1.178 MB / 275.7 MB, free: 14.32 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.196e-05/0.02446, allocations: 145.7 kB / 275.9 MB, free: 14.16 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.646e-05/0.02455, allocations: 55.19 kB / 275.9 MB, free: 14.11 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001122/0.02466, allocations: 107.4 kB / 276 MB, free: 14 MB / 266.7 MB Notification: Performance of SimCode: time 9.42e-07/0.02467, allocations: 4 kB / 276 MB, free: 14 MB / 266.7 MB Notification: Performance of Templates: time 0.006983/0.03165, allocations: 3.853 MB / 279.9 MB, free: 10.17 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6051653157919645]