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.001169/0.001169, allocations: 75.77 kB / 22.45 MB, free: 2.098 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.001484/0.001484, allocations: 168.7 kB / 25.75 MB, free: 8.582 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.8904/0.8904, allocations: 158.6 MB / 187.5 MB, free: 2.898 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.262e-06/1.262e-06, allocations: 0 / 251.1 MB, free: 7.805 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.851e-05/1.978e-05, allocations: 2.312 kB / 251.1 MB, free: 7.801 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004393/0.004412, allocations: 5.271 MB / 256.4 MB, free: 2.504 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002419/0.006832, allocations: 2.072 MB / 258.4 MB, free: 428 kB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003423/0.007174, allocations: 51.56 kB / 258.5 MB, free: 376 kB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003312/0.007505, allocations: 206.2 kB / 258.7 MB, free: 168 kB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002762/0.007781, allocations: 178.4 kB / 258.9 MB, free: 15.98 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006022/0.008384, allocations: 402.8 kB / 259.3 MB, free: 15.59 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007259/0.009109, allocations: 1.04 MB / 260.3 MB, free: 14.55 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004417/0.009551, allocations: 393.6 kB / 260.7 MB, free: 14.14 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004315/0.009983, allocations: 0.5186 MB / 261.2 MB, free: 13.62 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002515/0.01023, allocations: 267.2 kB / 261.5 MB, free: 13.36 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.518e-05/0.01031, allocations: 92 kB / 261.6 MB, free: 13.27 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001585/0.01047, allocations: 155.8 kB / 261.7 MB, free: 13.11 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001306/0.0106, allocations: 215.2 kB / 261.9 MB, free: 12.9 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001995/0.0108, allocations: 287.3 kB / 262.2 MB, free: 12.62 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005386/0.01134, allocations: 0.6654 MB / 262.9 MB, free: 11.95 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.01134, allocations: 4 kB / 262.9 MB, free: 11.95 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.01134, allocations: 0 / 262.9 MB, free: 11.95 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.235e-06/0.01135, allocations: 0 / 262.9 MB, free: 11.95 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.0009475/0.0123, allocations: 1.076 MB / 263.9 MB, free: 10.84 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.091e-05/0.01233, allocations: 11.98 kB / 264 MB, free: 10.82 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000144/0.01247, allocations: 160.4 kB / 264.1 MB, free: 10.67 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005046/0.01298, allocations: 482.4 kB / 264.6 MB, free: 10.17 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.039e-05/0.01302, allocations: 66.38 kB / 264.6 MB, free: 10.1 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.184e-05/0.0131, allocations: 92.31 kB / 264.7 MB, free: 10.01 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008509/0.01395, allocations: 0.6497 MB / 265.4 MB, free: 9.312 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.639e-05/0.01398, allocations: 8.188 kB / 265.4 MB, free: 9.305 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.145e-05/0.01402, allocations: 36.31 kB / 265.4 MB, free: 9.27 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.616e-05/0.01403, allocations: 23.94 kB / 265.5 MB, free: 9.246 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004547/0.01449, allocations: 287.6 kB / 265.7 MB, free: 8.965 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002188/0.01668, allocations: 2.97 MB / 268.7 MB, free: 5.879 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003425/0.01702, allocations: 179.6 kB / 268.9 MB, free: 5.691 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.217e-05/0.0171, allocations: 63.66 kB / 268.9 MB, free: 5.625 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.605e-05/0.01718, allocations: 15.98 kB / 269 MB, free: 5.609 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.262e-05/0.0172, allocations: 41.39 kB / 269 MB, free: 5.559 MB / 250.7 MB Notification: Performance of pre-optimization done (n=30): time 1.442e-06/0.0172, allocations: 0 / 269 MB, free: 5.559 MB / 250.7 MB Notification: Performance of matching and sorting (n=35): time 0.001286/0.01849, allocations: 0.9733 MB / 270 MB, free: 4.52 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.662e-05/0.01851, allocations: 59.41 kB / 270 MB, free: 4.449 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002269/0.01874, allocations: 350.2 kB / 270.4 MB, free: 4.09 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.53e-05/0.01876, allocations: 29.7 kB / 270.4 MB, free: 4.055 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003992/0.01915, allocations: 462.4 kB / 270.9 MB, free: 3.598 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.755e-05/0.01922, allocations: 134.8 kB / 271 MB, free: 3.465 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.866e-05/0.0193, allocations: 95.8 kB / 271.1 MB, free: 3.363 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.01942, allocations: 0.5157 MB / 271.6 MB, free: 2.836 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.119e-05/0.01951, allocations: 60.95 kB / 271.7 MB, free: 2.773 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001731/0.01968, allocations: 254.7 kB / 271.9 MB, free: 2.441 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002822/0.01996, allocations: 357.2 kB / 272.3 MB, free: 2.008 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.01997, allocations: 3.938 kB / 272.3 MB, free: 2.004 MB / 250.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0003924/0.02036, allocations: 396.1 kB / 272.6 MB, free: 1.605 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.02037, allocations: 8 kB / 272.6 MB, free: 1.598 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.02038, allocations: 4 kB / 272.7 MB, free: 1.594 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001317/0.02051, allocations: 31.67 kB / 272.7 MB, free: 1.559 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002179/0.02073, allocations: 111.8 kB / 272.8 MB, free: 1.449 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003/0.02103, allocations: 0.8078 MB / 273.6 MB, free: 0.6094 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.578e-05/0.02113, allocations: 20.38 kB / 273.6 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.525e-05/0.02115, allocations: 24 kB / 273.6 MB, free: 0.5664 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.0001251/0.02128, allocations: 180.5 kB / 273.8 MB, free: 388 kB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.784e-05/0.02132, allocations: 51.77 kB / 273.9 MB, free: 336 kB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003209/0.02165, allocations: 257 kB / 274.1 MB, free: 68 kB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.02165, allocations: 7.984 kB / 274.1 MB, free: 60 kB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.02165, allocations: 3.938 kB / 274.1 MB, free: 56 kB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.02166, allocations: 0 / 274.1 MB, free: 56 kB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007688/0.02243, allocations: 0.8557 MB / 275 MB, free: 15.13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.02243, allocations: 7.938 kB / 275 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002151/0.02264, allocations: 75.89 kB / 275.1 MB, free: 15.05 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.377e-05/0.02272, allocations: 31.67 kB / 275.1 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.712e-05/0.02274, allocations: 8 kB / 275.1 MB, free: 15.01 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002364/0.02297, allocations: 0.8078 MB / 275.9 MB, free: 14.17 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.02297, allocations: 8.125 kB / 275.9 MB, free: 14.16 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003985/0.02337, allocations: 0.5075 MB / 276.4 MB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.742e-05/0.0234, allocations: 27.77 kB / 276.5 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.221e-05/0.02343, allocations: 11.94 kB / 276.5 MB, free: 13.56 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.671e-05/0.02352, allocations: 8 kB / 276.5 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.651e-05/0.02357, allocations: 27.95 kB / 276.5 MB, free: 13.53 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.415e-05/0.02358, allocations: 12 kB / 276.5 MB, free: 13.52 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001255/0.02371, allocations: 227 kB / 276.7 MB, free: 13.3 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.02371, allocations: 0 / 276.7 MB, free: 13.3 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002937/0.024, allocations: 123.9 kB / 276.9 MB, free: 13.18 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.0001181/0.02412, allocations: 115.2 kB / 277 MB, free: 13.05 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003341/0.02445, allocations: 237.1 kB / 277.2 MB, free: 12.82 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.02445, allocations: 0 / 277.2 MB, free: 12.82 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001365/0.02459, allocations: 119.6 kB / 277.3 MB, free: 12.7 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003116/0.0249, allocations: 77.36 kB / 277.4 MB, free: 12.62 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001769/0.02667, allocations: 1.374 MB / 278.8 MB, free: 11.19 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.484e-05/0.02677, allocations: 145.7 kB / 278.9 MB, free: 11.03 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.992e-05/0.02687, allocations: 54.14 kB / 279 MB, free: 10.98 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.805e-05/0.02691, allocations: 28.5 kB / 279 MB, free: 10.95 MB / 266.7 MB Notification: Performance of SimCode: time 6.91e-07/0.02691, allocations: 0 / 279 MB, free: 10.95 MB / 266.7 MB Notification: Performance of Templates: time 0.006023/0.03294, allocations: 3.539 MB / 282.5 MB, free: 7.449 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.6968573059421033]