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.0009027/0.0009027, allocations: 84.3 kB / 22.21 MB, free: 2.285 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.0009241/0.0009241, allocations: 171.3 kB / 25.61 MB, free: 8.406 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.9172/0.9172, allocations: 158.6 MB / 187.5 MB, free: 2.789 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.503e-06/1.503e-06, allocations: 3.938 kB / 251.5 MB, free: 7.246 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.225e-05/1.376e-05, allocations: 2.312 kB / 251.5 MB, free: 7.242 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004556/0.00457, allocations: 5.166 MB / 256.6 MB, free: 2.047 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0027/0.007269, allocations: 2.041 MB / 258.7 MB, free: 15.99 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004751/0.007744, allocations: 51.47 kB / 258.7 MB, free: 15.94 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003333/0.008077, allocations: 210.2 kB / 258.9 MB, free: 15.73 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002678/0.008345, allocations: 178.3 kB / 259.1 MB, free: 15.56 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006068/0.008952, allocations: 398.9 kB / 259.5 MB, free: 15.17 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006543/0.009606, allocations: 1.036 MB / 260.5 MB, free: 14.13 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004283/0.01003, allocations: 397.5 kB / 260.9 MB, free: 13.71 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004036/0.01044, allocations: 0.5185 MB / 261.4 MB, free: 13.19 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002485/0.01069, allocations: 267.2 kB / 261.7 MB, free: 12.93 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.97e-05/0.01077, allocations: 92 kB / 261.8 MB, free: 12.84 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001878/0.01095, allocations: 159.8 kB / 261.9 MB, free: 12.68 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003979/0.01135, allocations: 211.3 kB / 262.1 MB, free: 12.48 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001722/0.01152, allocations: 291.3 kB / 262.4 MB, free: 12.19 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005319/0.01206, allocations: 0.6693 MB / 263.1 MB, free: 11.52 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.873e-06/0.01206, allocations: 0 / 263.1 MB, free: 11.52 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.01206, allocations: 0 / 263.1 MB, free: 11.52 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.181e-06/0.01206, allocations: 0 / 263.1 MB, free: 11.52 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.0008904/0.01296, allocations: 1.08 MB / 264.2 MB, free: 10.4 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.01299, allocations: 19.98 kB / 264.2 MB, free: 10.38 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001293/0.01312, allocations: 164.4 kB / 264.4 MB, free: 10.22 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004367/0.01356, allocations: 478.4 kB / 264.8 MB, free: 9.727 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.671e-05/0.01359, allocations: 66.38 kB / 264.9 MB, free: 9.66 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.562e-05/0.01367, allocations: 88.33 kB / 265 MB, free: 9.574 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000607/0.01428, allocations: 0.6105 MB / 265.6 MB, free: 8.914 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.329e-05/0.0143, allocations: 4.188 kB / 265.6 MB, free: 8.91 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.651e-05/0.01434, allocations: 32.38 kB / 265.6 MB, free: 8.879 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.417e-05/0.01435, allocations: 23.94 kB / 265.6 MB, free: 8.855 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003278/0.01468, allocations: 233.7 kB / 265.9 MB, free: 8.625 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001862/0.01654, allocations: 2.888 MB / 268.8 MB, free: 5.629 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002902/0.01683, allocations: 155.6 kB / 268.9 MB, free: 5.465 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.942e-05/0.01689, allocations: 55.64 kB / 269 MB, free: 5.406 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.567e-05/0.01697, allocations: 23.78 kB / 269 MB, free: 5.387 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.319e-05/0.01699, allocations: 41.38 kB / 269 MB, free: 5.336 MB / 250.7 MB Notification: Performance of pre-optimization done (n=30): time 1.392e-06/0.01699, allocations: 4 kB / 269 MB, free: 5.332 MB / 250.7 MB Notification: Performance of matching and sorting (n=35): time 0.00134/0.01833, allocations: 0.8411 MB / 269.9 MB, free: 4.426 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.327e-05/0.01835, allocations: 55.41 kB / 269.9 MB, free: 4.359 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000185/0.01854, allocations: 350 kB / 270.3 MB, free: 4 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.701e-05/0.01856, allocations: 33.7 kB / 270.3 MB, free: 3.961 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001818/0.01874, allocations: 462.4 kB / 270.8 MB, free: 3.504 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.772e-05/0.0188, allocations: 138.8 kB / 270.9 MB, free: 3.367 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.322e-05/0.01889, allocations: 103.8 kB / 271 MB, free: 3.258 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.01902, allocations: 0.5234 MB / 271.5 MB, free: 2.723 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.606e-05/0.01908, allocations: 44.95 kB / 271.6 MB, free: 2.676 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001354/0.01921, allocations: 234.7 kB / 271.8 MB, free: 2.363 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002284/0.01944, allocations: 333.1 kB / 272.1 MB, free: 1.953 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.01944, allocations: 4 kB / 272.1 MB, free: 1.949 MB / 250.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0003512/0.01979, allocations: 359.9 kB / 272.5 MB, free: 1.586 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.01981, allocations: 8 kB / 272.5 MB, free: 1.578 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.01982, allocations: 8.578 kB / 272.5 MB, free: 1.57 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001303/0.01995, allocations: 43.64 kB / 272.5 MB, free: 1.523 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002057/0.02016, allocations: 111.8 kB / 272.6 MB, free: 1.414 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004181/0.02058, allocations: 0.8077 MB / 273.4 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001016/0.02068, allocations: 12 kB / 273.5 MB, free: 0.5625 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.889e-05/0.02071, allocations: 27.94 kB / 273.5 MB, free: 0.5352 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.0001337/0.02084, allocations: 180.5 kB / 273.7 MB, free: 356 kB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.772e-05/0.02089, allocations: 47.77 kB / 273.7 MB, free: 308 kB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002948/0.02118, allocations: 248.9 kB / 274 MB, free: 52 kB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.02119, allocations: 4 kB / 274 MB, free: 48 kB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.02119, allocations: 0 / 274 MB, free: 48 kB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.0212, allocations: 7.875 kB / 274 MB, free: 40 kB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007068/0.0219, allocations: 0.7507 MB / 274.7 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.0219, allocations: 0 / 274.7 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002349/0.02214, allocations: 79.89 kB / 274.8 MB, free: 15.15 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000108/0.02225, allocations: 35.83 kB / 274.8 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.799e-05/0.02227, allocations: 8 kB / 274.8 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002675/0.02253, allocations: 0.7922 MB / 275.6 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.02254, allocations: 7.938 kB / 275.6 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005985/0.02313, allocations: 495.6 kB / 276.1 MB, free: 13.74 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.938e-05/0.02316, allocations: 27.77 kB / 276.1 MB, free: 13.71 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.321e-05/0.02319, allocations: 8 kB / 276.2 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.49e-05/0.02326, allocations: 12.03 kB / 276.2 MB, free: 13.69 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.648e-05/0.0233, allocations: 31.89 kB / 276.2 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.441e-05/0.02331, allocations: 12 kB / 276.2 MB, free: 13.65 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.559e-05/0.02341, allocations: 218.9 kB / 276.4 MB, free: 13.44 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02341, allocations: 0 / 276.4 MB, free: 13.44 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002956/0.0237, allocations: 123.9 kB / 276.5 MB, free: 13.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.0001239/0.02383, allocations: 115.2 kB / 276.7 MB, free: 13.2 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002662/0.02409, allocations: 216.3 kB / 276.9 MB, free: 12.98 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.0241, allocations: 0 / 276.9 MB, free: 12.98 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001078/0.0242, allocations: 111.4 kB / 277 MB, free: 12.87 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003256/0.02453, allocations: 70.78 kB / 277 MB, free: 12.8 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001482/0.02601, allocations: 1.362 MB / 278.4 MB, free: 11.38 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.947e-05/0.0261, allocations: 153.7 kB / 278.6 MB, free: 11.21 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.284e-05/0.02619, allocations: 47.33 kB / 278.6 MB, free: 11.16 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001232/0.02632, allocations: 146.2 kB / 278.7 MB, free: 11.02 MB / 266.7 MB Notification: Performance of SimCode: time 9.51e-07/0.02632, allocations: 0 / 278.7 MB, free: 11.02 MB / 266.7 MB Notification: Performance of Templates: time 0.006921/0.03324, allocations: 3.858 MB / 282.6 MB, free: 7.191 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.670925009995699]