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.001475/0.001475, allocations: 85.95 kB / 23 MB, free: 1.504 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.001233/0.001233, allocations: 171.6 kB / 26.39 MB, free: 7.988 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.9718/0.9718, allocations: 158.6 MB / 188.3 MB, free: 2.82 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.282e-06/1.282e-06, allocations: 0 / 252.3 MB, free: 7.254 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.352e-05/2.481e-05, allocations: 2.312 kB / 252.3 MB, free: 7.25 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.01333/0.01336, allocations: 5.159 MB / 257.4 MB, free: 2.062 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.007104/0.02046, allocations: 2.041 MB / 259.5 MB, free: 8 kB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003778/0.02424, allocations: 51.67 kB / 259.5 MB, free: 15.95 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004706/0.02471, allocations: 210.1 kB / 259.7 MB, free: 15.75 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004498/0.02516, allocations: 182.2 kB / 259.9 MB, free: 15.57 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009003/0.02606, allocations: 398.9 kB / 260.3 MB, free: 15.18 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004016/0.03007, allocations: 1.032 MB / 261.3 MB, free: 14.14 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006049/0.03068, allocations: 393.6 kB / 261.7 MB, free: 13.73 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006811/0.03136, allocations: 0.5224 MB / 262.2 MB, free: 13.21 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004059/0.03177, allocations: 275.2 kB / 262.5 MB, free: 12.94 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001271/0.03189, allocations: 92 kB / 262.6 MB, free: 12.85 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002539/0.03215, allocations: 147.8 kB / 262.7 MB, free: 12.7 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001772/0.03232, allocations: 219.3 kB / 262.9 MB, free: 12.49 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00331/0.03563, allocations: 287.3 kB / 263.2 MB, free: 12.21 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007538/0.03639, allocations: 0.6732 MB / 263.9 MB, free: 11.53 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.03639, allocations: 3.938 kB / 263.9 MB, free: 11.53 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.03639, allocations: 0 / 263.9 MB, free: 11.53 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.049e-05/0.0364, allocations: 0 / 263.9 MB, free: 11.53 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.001542/0.03795, allocations: 1.076 MB / 265 MB, free: 10.41 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.03798, allocations: 19.98 kB / 265 MB, free: 10.39 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002048/0.03819, allocations: 160.4 kB / 265.1 MB, free: 10.24 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006729/0.03886, allocations: 486.3 kB / 265.6 MB, free: 9.734 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.298e-05/0.03891, allocations: 66.38 kB / 265.7 MB, free: 9.668 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001106/0.03903, allocations: 88.33 kB / 265.8 MB, free: 9.582 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008606/0.03989, allocations: 0.6027 MB / 266.4 MB, free: 8.93 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.711e-05/0.03991, allocations: 8.172 kB / 266.4 MB, free: 8.922 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.3e-05/0.03997, allocations: 32.38 kB / 266.4 MB, free: 8.891 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.807e-05/0.03998, allocations: 23.94 kB / 266.4 MB, free: 8.867 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004707/0.04046, allocations: 233.7 kB / 266.7 MB, free: 8.637 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002734/0.04319, allocations: 2.884 MB / 269.5 MB, free: 5.645 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000389/0.04358, allocations: 163.6 kB / 269.7 MB, free: 5.473 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.471e-05/0.04366, allocations: 51.66 kB / 269.8 MB, free: 5.418 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.447e-05/0.04375, allocations: 27.97 kB / 269.8 MB, free: 5.391 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.761e-05/0.04377, allocations: 33.39 kB / 269.8 MB, free: 5.348 MB / 250.7 MB Notification: Performance of pre-optimization done (n=30): time 1.673e-06/0.04378, allocations: 0 / 269.8 MB, free: 5.348 MB / 250.7 MB Notification: Performance of matching and sorting (n=35): time 0.001586/0.04536, allocations: 0.8454 MB / 270.7 MB, free: 4.438 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.618e-05/0.0454, allocations: 59.34 kB / 270.7 MB, free: 4.367 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002951/0.04569, allocations: 342 kB / 271.1 MB, free: 4.016 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.52e-05/0.04572, allocations: 33.7 kB / 271.1 MB, free: 3.977 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002873/0.04601, allocations: 466.4 kB / 271.5 MB, free: 3.516 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001036/0.04611, allocations: 138.8 kB / 271.7 MB, free: 3.379 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001274/0.04624, allocations: 95.77 kB / 271.8 MB, free: 3.277 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0004577/0.04669, allocations: 0.5273 MB / 272.3 MB, free: 2.738 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.462e-05/0.04679, allocations: 44.97 kB / 272.3 MB, free: 2.691 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000199/0.04699, allocations: 242.6 kB / 272.6 MB, free: 2.371 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003443/0.04733, allocations: 333.2 kB / 272.9 MB, free: 1.961 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.04734, allocations: 4 kB / 272.9 MB, free: 1.957 MB / 250.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0004997/0.04784, allocations: 359.9 kB / 273.3 MB, free: 1.594 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.04785, allocations: 4 kB / 273.3 MB, free: 1.59 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.04786, allocations: 4.594 kB / 273.3 MB, free: 1.586 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001434/0.048, allocations: 39.66 kB / 273.3 MB, free: 1.543 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003186/0.04832, allocations: 115.8 kB / 273.4 MB, free: 1.43 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003881/0.04871, allocations: 0.8077 MB / 274.2 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001722/0.04888, allocations: 20 kB / 274.2 MB, free: 0.5703 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.519e-05/0.04892, allocations: 23.94 kB / 274.3 MB, free: 0.5469 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.0001936/0.04911, allocations: 180.4 kB / 274.4 MB, free: 368 kB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.169e-05/0.04919, allocations: 51.77 kB / 274.5 MB, free: 316 kB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00042/0.04961, allocations: 248.6 kB / 274.7 MB, free: 60 kB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.04962, allocations: 4 kB / 274.7 MB, free: 56 kB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-06/0.04962, allocations: 0 / 274.7 MB, free: 56 kB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.04963, allocations: 3.938 kB / 274.7 MB, free: 52 kB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00106/0.05069, allocations: 0.7427 MB / 275.5 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.778e-06/0.05069, allocations: 4 kB / 275.5 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003056/0.051, allocations: 75.89 kB / 275.6 MB, free: 15.17 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001159/0.05111, allocations: 31.83 kB / 275.6 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.344e-05/0.05113, allocations: 12 kB / 275.6 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003674/0.0515, allocations: 0.8 MB / 276.4 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.05151, allocations: 3.938 kB / 276.4 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005402/0.05205, allocations: 491.6 kB / 276.9 MB, free: 13.76 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.937e-05/0.0521, allocations: 31.75 kB / 276.9 MB, free: 13.73 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.828e-05/0.05213, allocations: 8 kB / 276.9 MB, free: 13.72 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001344/0.05227, allocations: 12 kB / 276.9 MB, free: 13.71 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.428e-05/0.05232, allocations: 31.92 kB / 277 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.2e-05/0.05234, allocations: 12 kB / 277 MB, free: 13.66 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001549/0.0525, allocations: 214.9 kB / 277.2 MB, free: 13.46 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0525, allocations: 0 / 277.2 MB, free: 13.46 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005706/0.05307, allocations: 119.9 kB / 277.3 MB, free: 13.34 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.000175/0.05324, allocations: 123.2 kB / 277.4 MB, free: 13.21 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004107/0.05366, allocations: 220.6 kB / 277.7 MB, free: 12.99 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.05366, allocations: 0 / 277.7 MB, free: 12.99 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001781/0.05384, allocations: 107.4 kB / 277.8 MB, free: 12.88 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005141/0.05435, allocations: 78.47 kB / 277.8 MB, free: 12.81 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002702/0.05705, allocations: 1.358 MB / 279.2 MB, free: 11.39 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001362/0.05719, allocations: 145.7 kB / 279.3 MB, free: 11.23 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001741/0.05736, allocations: 52.94 kB / 279.4 MB, free: 11.18 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001872/0.05755, allocations: 138.2 kB / 279.5 MB, free: 11.04 MB / 266.7 MB Notification: Performance of SimCode: time 8.62e-07/0.05755, allocations: 8 kB / 279.5 MB, free: 11.04 MB / 266.7 MB Notification: Performance of Templates: time 0.009211/0.06676, allocations: 3.927 MB / 283.5 MB, free: 7.145 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.9332410972565413]