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.00102/0.00102, allocations: 79.73 kB / 21.97 MB, free: 2.59 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.001054/0.001054, allocations: 170.6 kB / 25.33 MB, free: 9.113 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.8324/0.8324, allocations: 158.6 MB / 187.2 MB, free: 2.426 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.272e-06/1.272e-06, allocations: 0 / 251 MB, free: 3.582 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.976e-05/2.103e-05, allocations: 2.312 kB / 251 MB, free: 3.578 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004824/0.004845, allocations: 5.29 MB / 256.3 MB, free: 14.26 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002872/0.007716, allocations: 2.08 MB / 258.4 MB, free: 12.16 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006153/0.008332, allocations: 47.62 kB / 258.5 MB, free: 12.12 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003994/0.008731, allocations: 214.1 kB / 258.7 MB, free: 11.91 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003612/0.009092, allocations: 174.3 kB / 258.8 MB, free: 11.73 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007521/0.009844, allocations: 402.9 kB / 259.2 MB, free: 11.34 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008939/0.01074, allocations: 1.036 MB / 260.3 MB, free: 10.3 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007316/0.01147, allocations: 393.6 kB / 260.6 MB, free: 9.887 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005562/0.01203, allocations: 0.5186 MB / 261.2 MB, free: 9.367 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003094/0.01234, allocations: 275.2 kB / 261.4 MB, free: 9.098 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.597e-05/0.01242, allocations: 92 kB / 261.5 MB, free: 9.008 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002052/0.01263, allocations: 155.8 kB / 261.7 MB, free: 8.855 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001324/0.01276, allocations: 207.3 kB / 261.9 MB, free: 8.652 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002064/0.01297, allocations: 291.3 kB / 262.2 MB, free: 8.367 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006402/0.01361, allocations: 0.6693 MB / 262.8 MB, free: 7.695 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.01361, allocations: 0 / 262.8 MB, free: 7.695 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.01361, allocations: 4 kB / 262.8 MB, free: 7.691 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.381e-05/0.01363, allocations: 0 / 262.8 MB, free: 7.691 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.001038/0.01466, allocations: 1.08 MB / 263.9 MB, free: 6.574 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.0147, allocations: 11.98 kB / 263.9 MB, free: 6.562 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001546/0.01486, allocations: 156.4 kB / 264.1 MB, free: 6.41 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000504/0.01536, allocations: 486.4 kB / 264.6 MB, free: 5.906 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.695e-05/0.0154, allocations: 62.38 kB / 264.6 MB, free: 5.844 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.969e-05/0.01548, allocations: 92.31 kB / 264.7 MB, free: 5.754 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007757/0.01625, allocations: 0.6497 MB / 265.4 MB, free: 5.055 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.571e-05/0.01628, allocations: 4.188 kB / 265.4 MB, free: 5.051 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.866e-05/0.01632, allocations: 36.38 kB / 265.4 MB, free: 5.016 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.681e-05/0.01633, allocations: 23.94 kB / 265.4 MB, free: 4.992 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004448/0.01678, allocations: 291.6 kB / 265.7 MB, free: 4.707 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002345/0.01912, allocations: 2.97 MB / 268.7 MB, free: 1.621 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003625/0.01949, allocations: 173.2 kB / 268.8 MB, free: 1.445 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.028e-05/0.01957, allocations: 63.66 kB / 268.9 MB, free: 1.379 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.071e-05/0.01966, allocations: 23.98 kB / 268.9 MB, free: 1.355 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.207e-05/0.01968, allocations: 41.33 kB / 269 MB, free: 1.305 MB / 250.7 MB Notification: Performance of pre-optimization done (n=30): time 2.245e-06/0.01968, allocations: 0 / 269 MB, free: 1.305 MB / 250.7 MB Notification: Performance of matching and sorting (n=35): time 0.001398/0.02108, allocations: 0.9735 MB / 269.9 MB, free: 272 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.099e-05/0.02111, allocations: 59.41 kB / 270 MB, free: 200 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003068/0.02142, allocations: 354.2 kB / 270.3 MB, free: 15.83 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.905e-05/0.02144, allocations: 29.7 kB / 270.4 MB, free: 15.8 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001947/0.02163, allocations: 462.4 kB / 270.8 MB, free: 15.34 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.248e-05/0.0217, allocations: 138.8 kB / 271 MB, free: 15.2 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.479e-05/0.02179, allocations: 95.8 kB / 271.1 MB, free: 15.1 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.02192, allocations: 0.5157 MB / 271.6 MB, free: 14.57 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.353e-05/0.02201, allocations: 60.95 kB / 271.6 MB, free: 14.51 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001766/0.02219, allocations: 262.6 kB / 271.9 MB, free: 14.17 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002847/0.02247, allocations: 341.2 kB / 272.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.02248, allocations: 7.938 kB / 272.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0004186/0.0229, allocations: 392.5 kB / 272.6 MB, free: 13.35 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.02292, allocations: 8 kB / 272.6 MB, free: 13.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.02292, allocations: 8.031 kB / 272.6 MB, free: 13.34 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001674/0.02309, allocations: 39.66 kB / 272.7 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002159/0.02331, allocations: 103.8 kB / 272.8 MB, free: 13.19 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000336/0.02364, allocations: 0.8078 MB / 273.6 MB, free: 12.35 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001087/0.02375, allocations: 19.94 kB / 273.6 MB, free: 12.33 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.819e-05/0.02378, allocations: 20 kB / 273.6 MB, free: 12.31 MB / 266.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.0001358/0.02392, allocations: 184.5 kB / 273.8 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.581e-05/0.02396, allocations: 47.77 kB / 273.8 MB, free: 12.07 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003401/0.0243, allocations: 265 kB / 274.1 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.02431, allocations: 4 kB / 274.1 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.02431, allocations: 3.938 kB / 274.1 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.02431, allocations: 0 / 274.1 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001035/0.02535, allocations: 0.8476 MB / 275 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.02535, allocations: 0 / 275 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002051/0.02556, allocations: 84.05 kB / 275 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.368e-05/0.02564, allocations: 31.7 kB / 275.1 MB, free: 10.77 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.021e-05/0.02566, allocations: 8 kB / 275.1 MB, free: 10.76 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002506/0.02591, allocations: 0.8078 MB / 275.9 MB, free: 9.918 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.02591, allocations: 7.938 kB / 275.9 MB, free: 9.91 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004231/0.02634, allocations: 0.5074 MB / 276.4 MB, free: 9.352 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.179e-05/0.02637, allocations: 31.77 kB / 276.4 MB, free: 9.32 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.191e-05/0.0264, allocations: 19.97 kB / 276.5 MB, free: 9.301 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.261e-05/0.02647, allocations: 4 kB / 276.5 MB, free: 9.297 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.586e-05/0.02652, allocations: 23.95 kB / 276.5 MB, free: 9.273 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.472e-05/0.02653, allocations: 12 kB / 276.5 MB, free: 9.262 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001271/0.02666, allocations: 227 kB / 276.7 MB, free: 9.043 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02666, allocations: 0 / 276.7 MB, free: 9.043 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003295/0.02699, allocations: 123.9 kB / 276.8 MB, free: 8.922 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.0001473/0.02714, allocations: 115.2 kB / 276.9 MB, free: 8.801 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003514/0.02749, allocations: 240.1 kB / 277.2 MB, free: 8.562 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.02749, allocations: 0 / 277.2 MB, free: 8.562 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000128/0.02762, allocations: 120.9 kB / 277.3 MB, free: 8.441 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003318/0.02795, allocations: 73.38 kB / 277.4 MB, free: 8.371 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001722/0.02967, allocations: 1.372 MB / 278.7 MB, free: 6.941 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.488e-05/0.02977, allocations: 153.7 kB / 278.9 MB, free: 6.77 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001075/0.02988, allocations: 45.84 kB / 278.9 MB, free: 6.727 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.084e-05/0.02993, allocations: 36.44 kB / 279 MB, free: 6.691 MB / 266.7 MB Notification: Performance of SimCode: time 8.72e-07/0.02993, allocations: 0 / 279 MB, free: 6.691 MB / 266.7 MB Notification: Performance of Templates: time 0.006965/0.03689, allocations: 3.724 MB / 282.7 MB, free: 3.004 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.6286073210649192]