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.0009573/0.0009573, allocations: 75.75 kB / 21.97 MB, free: 2.602 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.001157/0.001157, allocations: 171.6 kB / 25.33 MB, free: 8.598 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.8989/0.8989, allocations: 158.6 MB / 187.2 MB, free: 2.922 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.513e-06/1.513e-06, allocations: 0 / 251 MB, free: 7.527 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.396e-05/1.547e-05, allocations: 2.312 kB / 251 MB, free: 7.523 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004798/0.004814, allocations: 5.307 MB / 256.3 MB, free: 2.188 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002735/0.007548, allocations: 2.072 MB / 258.4 MB, free: 104 kB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004397/0.007988, allocations: 51.56 kB / 258.5 MB, free: 52 kB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003629/0.008351, allocations: 210.2 kB / 258.7 MB, free: 15.84 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003026/0.008654, allocations: 178.3 kB / 258.8 MB, free: 15.67 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006514/0.009305, allocations: 402.9 kB / 259.2 MB, free: 15.27 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007886/0.01009, allocations: 1.036 MB / 260.3 MB, free: 14.23 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000475/0.01057, allocations: 397.6 kB / 260.7 MB, free: 13.82 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004715/0.01104, allocations: 0.5147 MB / 261.2 MB, free: 13.3 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002651/0.01131, allocations: 275.2 kB / 261.4 MB, free: 13.03 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.341e-05/0.01139, allocations: 92 kB / 261.5 MB, free: 12.94 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001806/0.01157, allocations: 151.8 kB / 261.7 MB, free: 12.79 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001806/0.01175, allocations: 207.3 kB / 261.9 MB, free: 12.59 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000191/0.01194, allocations: 295.3 kB / 262.2 MB, free: 12.3 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005646/0.01251, allocations: 0.6693 MB / 262.8 MB, free: 11.63 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.354e-06/0.01251, allocations: 0 / 262.8 MB, free: 11.63 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.92e-07/0.01251, allocations: 0 / 262.8 MB, free: 11.63 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.01252, allocations: 0 / 262.8 MB, free: 11.63 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.0009444/0.01346, allocations: 1.084 MB / 263.9 MB, free: 10.51 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.0135, allocations: 11.98 kB / 263.9 MB, free: 10.5 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001588/0.01366, allocations: 160.4 kB / 264.1 MB, free: 10.34 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004827/0.01414, allocations: 474.5 kB / 264.6 MB, free: 9.848 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.902e-05/0.01418, allocations: 66.38 kB / 264.6 MB, free: 9.781 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.205e-05/0.01426, allocations: 92.31 kB / 264.7 MB, free: 9.691 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007566/0.01502, allocations: 0.6458 MB / 265.4 MB, free: 8.996 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.556e-05/0.01504, allocations: 12.12 kB / 265.4 MB, free: 8.984 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.015e-05/0.01508, allocations: 32.38 kB / 265.4 MB, free: 8.953 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.854e-05/0.0151, allocations: 23.94 kB / 265.4 MB, free: 8.93 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004446/0.01555, allocations: 291.6 kB / 265.7 MB, free: 8.645 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002011/0.01756, allocations: 2.966 MB / 268.7 MB, free: 5.562 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003419/0.0179, allocations: 175.7 kB / 268.8 MB, free: 5.379 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.116e-05/0.01798, allocations: 63.66 kB / 268.9 MB, free: 5.312 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.99e-05/0.01806, allocations: 15.98 kB / 268.9 MB, free: 5.297 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.746e-05/0.01812, allocations: 49.33 kB / 269 MB, free: 5.238 MB / 250.7 MB Notification: Performance of pre-optimization done (n=30): time 1.392e-06/0.01812, allocations: 3.938 kB / 269 MB, free: 5.234 MB / 250.7 MB Notification: Performance of matching and sorting (n=35): time 0.001303/0.01942, allocations: 0.9694 MB / 269.9 MB, free: 4.199 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.3e-05/0.01945, allocations: 55.41 kB / 270 MB, free: 4.133 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002388/0.01969, allocations: 346.2 kB / 270.3 MB, free: 3.777 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.825e-05/0.01971, allocations: 33.7 kB / 270.4 MB, free: 3.738 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001808/0.01989, allocations: 454.4 kB / 270.8 MB, free: 3.289 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.166e-05/0.01996, allocations: 142.8 kB / 271 MB, free: 3.148 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.665e-05/0.02005, allocations: 99.8 kB / 271 MB, free: 3.043 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.02018, allocations: 0.5157 MB / 271.6 MB, free: 2.516 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.845e-05/0.02027, allocations: 60.95 kB / 271.6 MB, free: 2.453 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001691/0.02044, allocations: 258.6 kB / 271.9 MB, free: 2.117 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002944/0.02074, allocations: 349.2 kB / 272.2 MB, free: 1.691 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.02074, allocations: 7.938 kB / 272.2 MB, free: 1.684 MB / 250.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0003985/0.02114, allocations: 392.5 kB / 272.6 MB, free: 1.289 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.02115, allocations: 4 kB / 272.6 MB, free: 1.285 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.565e-06/0.02116, allocations: 12.03 kB / 272.6 MB, free: 1.273 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001303/0.02129, allocations: 31.61 kB / 272.7 MB, free: 1.238 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002094/0.0215, allocations: 115.8 kB / 272.8 MB, free: 1.125 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003101/0.02181, allocations: 0.8039 MB / 273.6 MB, free: 296 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.93e-05/0.0219, allocations: 19.94 kB / 273.6 MB, free: 276 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.546e-05/0.02192, allocations: 20 kB / 273.6 MB, free: 256 kB / 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.000127/0.02205, allocations: 180.5 kB / 273.8 MB, free: 64 kB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.54e-05/0.02209, allocations: 51.77 kB / 273.8 MB, free: 12 kB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003267/0.02242, allocations: 268.6 kB / 274.1 MB, free: 15.74 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.02242, allocations: 0 / 274.1 MB, free: 15.74 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.02243, allocations: 7.938 kB / 274.1 MB, free: 15.73 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.02243, allocations: 0 / 274.1 MB, free: 15.73 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007764/0.02321, allocations: 0.8479 MB / 275 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.02321, allocations: 4 kB / 275 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002014/0.02341, allocations: 80.05 kB / 275 MB, free: 14.74 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.638e-05/0.02349, allocations: 31.67 kB / 275.1 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.843e-05/0.02351, allocations: 8 kB / 275.1 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002529/0.02376, allocations: 0.8039 MB / 275.9 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.02376, allocations: 3.938 kB / 275.9 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000583/0.02435, allocations: 0.5152 MB / 276.4 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.799e-05/0.02438, allocations: 27.77 kB / 276.4 MB, free: 13.26 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.199e-05/0.02441, allocations: 15.97 kB / 276.4 MB, free: 13.25 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.133e-05/0.02448, allocations: 8 kB / 276.5 MB, free: 13.24 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.066e-05/0.02452, allocations: 23.95 kB / 276.5 MB, free: 13.21 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.344e-05/0.02453, allocations: 19.94 kB / 276.5 MB, free: 13.2 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000124/0.02466, allocations: 227 kB / 276.7 MB, free: 12.98 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.02466, allocations: 0 / 276.7 MB, free: 12.98 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002854/0.02494, allocations: 123.9 kB / 276.8 MB, free: 12.86 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.0001179/0.02506, allocations: 111.2 kB / 276.9 MB, free: 12.74 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003326/0.02539, allocations: 236.2 kB / 277.2 MB, free: 12.5 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.332e-06/0.02539, allocations: 0 / 277.2 MB, free: 12.5 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000123/0.02552, allocations: 116.9 kB / 277.3 MB, free: 12.39 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003057/0.02582, allocations: 81.42 kB / 277.4 MB, free: 12.31 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001487/0.02731, allocations: 1.373 MB / 278.7 MB, free: 10.88 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.146e-05/0.0274, allocations: 149.7 kB / 278.9 MB, free: 10.71 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.644e-05/0.02749, allocations: 48.83 kB / 278.9 MB, free: 10.66 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.017e-05/0.02754, allocations: 32.5 kB / 279 MB, free: 10.63 MB / 266.7 MB Notification: Performance of SimCode: time 6.82e-07/0.02754, allocations: 0 / 279 MB, free: 10.63 MB / 266.7 MB Notification: Performance of Templates: time 0.005886/0.03342, allocations: 3.536 MB / 282.5 MB, free: 7.133 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.815952724777162]