Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001907/0.001907, allocations: 96.03 kB / 21.18 MB, free: 0.5312 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002303/0.002303, allocations: 185 kB / 24.46 MB, free: 3.863 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.657/1.657, allocations: 225.7 MB / 253.3 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001654/0.001654, allocations: 51.92 kB / 371.6 MB, free: 9.211 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2512/0.2528, allocations: 52.18 MB / 423.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.00739/0.2602, allocations: 4.829 MB / 428.6 MB, free: 9.625 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003889/0.2641, allocations: 1.99 MB / 430.6 MB, free: 7.625 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008699/0.265, allocations: 51.56 kB / 430.7 MB, free: 7.574 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006532/0.2656, allocations: 206.2 kB / 430.9 MB, free: 7.371 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005934/0.2662, allocations: 178.4 kB / 431.1 MB, free: 7.195 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009961/0.2672, allocations: 395.1 kB / 431.4 MB, free: 6.809 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001092/0.2683, allocations: 1.009 MB / 432.5 MB, free: 5.793 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006391/0.2689, allocations: 401.4 kB / 432.8 MB, free: 5.379 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004133/0.2693, allocations: 346.9 kB / 433.2 MB, free: 5.039 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004003/0.2697, allocations: 314.3 kB / 433.5 MB, free: 4.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001245/0.2699, allocations: 92 kB / 433.6 MB, free: 4.641 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002778/0.2701, allocations: 155.9 kB / 433.7 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001991/0.2703, allocations: 203.4 kB / 433.9 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003423/0.2707, allocations: 342.5 kB / 434.3 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00125/0.2719, allocations: 1.19 MB / 435.5 MB, free: 2.766 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2719, allocations: 7.938 kB / 435.5 MB, free: 2.758 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2719, allocations: 0 / 435.5 MB, free: 2.758 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.237e-05/0.272, allocations: 0 / 435.5 MB, free: 2.758 MB / 334.1 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.001496/0.2734, allocations: 0.9796 MB / 436.4 MB, free: 1.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.2735, allocations: 12.03 kB / 436.5 MB, free: 1.738 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001487/0.2736, allocations: 92.38 kB / 436.5 MB, free: 1.648 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008318/0.2745, allocations: 460.3 kB / 437 MB, free: 1.172 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.826e-05/0.2745, allocations: 66.38 kB / 437.1 MB, free: 1.105 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001317/0.2747, allocations: 92.27 kB / 437.1 MB, free: 1.016 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001399/0.2761, allocations: 0.8047 MB / 438 MB, free: 180 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.572e-05/0.2761, allocations: 7.953 kB / 438 MB, free: 172 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.509e-05/0.2762, allocations: 36 kB / 438 MB, free: 136 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.373e-05/0.2762, allocations: 20 kB / 438 MB, free: 116 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001009/0.2772, allocations: 0.4918 MB / 438.5 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003127/0.2803, allocations: 2.477 MB / 441 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005561/0.2809, allocations: 203.1 kB / 441.2 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001838/0.2811, allocations: 97.31 kB / 441.3 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001029/0.2812, allocations: 19.92 kB / 441.3 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.444e-05/0.2812, allocations: 42.5 kB / 441.3 MB, free: 12.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.244e-06/0.2812, allocations: 0 / 441.3 MB, free: 12.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002385/0.2836, allocations: 1.112 MB / 442.4 MB, free: 11.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.247e-05/0.2836, allocations: 55.41 kB / 442.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003552/0.284, allocations: 312.3 kB / 442.8 MB, free: 11.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.293e-05/0.284, allocations: 41.69 kB / 442.8 MB, free: 11.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002795/0.2843, allocations: 403.8 kB / 443.2 MB, free: 10.67 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/0.2844, allocations: 138.8 kB / 443.4 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001257/0.2845, allocations: 90.14 kB / 443.5 MB, free: 10.44 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001774/0.2847, allocations: 350.7 kB / 443.8 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000212/0.2849, allocations: 109 kB / 443.9 MB, free: 9.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003408/0.2853, allocations: 254 kB / 444.2 MB, free: 9.672 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000566/0.2858, allocations: 384.9 kB / 444.5 MB, free: 9.234 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.399e-06/0.2858, allocations: 4 kB / 444.5 MB, free: 9.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007751/0.2866, allocations: 457.3 kB / 445 MB, free: 8.773 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.2866, allocations: 11.09 kB / 445 MB, free: 8.766 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.203e-05/0.2866, allocations: 4 kB / 445 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002044/0.2869, allocations: 36.84 kB / 445 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003684/0.2872, allocations: 115.8 kB / 445.2 MB, free: 8.609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004467/0.2877, allocations: 0.5601 MB / 445.7 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002071/0.2879, allocations: 19.98 kB / 445.7 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.267e-05/0.2879, allocations: 24 kB / 445.8 MB, free: 7.98 MB / 350.1 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.0003146/0.2882, allocations: 215.4 kB / 446 MB, free: 7.762 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.727e-05/0.2883, allocations: 35.77 kB / 446 MB, free: 7.727 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006438/0.2889, allocations: 332.3 kB / 446.3 MB, free: 7.387 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.104e-06/0.289, allocations: 4 kB / 446.3 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.289, allocations: 0 / 446.3 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.289, allocations: 4 kB / 446.3 MB, free: 7.379 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001345/0.2903, allocations: 0.8516 MB / 447.2 MB, free: 6.473 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.2903, allocations: 8.156 kB / 447.2 MB, free: 6.465 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003621/0.2907, allocations: 83.89 kB / 447.3 MB, free: 6.383 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001319/0.2908, allocations: 32.84 kB / 447.3 MB, free: 6.348 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.526e-05/0.2908, allocations: 8 kB / 447.3 MB, free: 6.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003836/0.2912, allocations: 0.5562 MB / 447.9 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.2912, allocations: 0 / 447.9 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008131/0.292, allocations: 0.5489 MB / 448.4 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.859e-05/0.2921, allocations: 35.7 kB / 448.5 MB, free: 5.133 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.997e-05/0.2921, allocations: 16.25 kB / 448.5 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001569/0.2923, allocations: 8 kB / 448.5 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.581e-05/0.2924, allocations: 27.89 kB / 448.5 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.59e-05/0.2924, allocations: 15.98 kB / 448.5 MB, free: 5.066 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002206/0.2926, allocations: 203.1 kB / 448.7 MB, free: 4.871 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2926, allocations: 0 / 448.7 MB, free: 4.871 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000525/0.2931, allocations: 124 kB / 448.8 MB, free: 4.75 MB / 350.1 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.0001709/0.2933, allocations: 115.2 kB / 449 MB, free: 4.625 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006182/0.2939, allocations: 307.7 kB / 449.3 MB, free: 4.324 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2939, allocations: 0 / 449.3 MB, free: 4.324 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000266/0.2942, allocations: 129 kB / 449.4 MB, free: 4.199 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005077/0.2947, allocations: 81.03 kB / 449.5 MB, free: 4.125 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002675/0.2974, allocations: 1.632 MB / 451.1 MB, free: 2.438 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003656/0.2977, allocations: 329.8 kB / 451.4 MB, free: 2.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.063e-05/0.2978, allocations: 35.42 kB / 451.4 MB, free: 2.055 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2978, allocations: 0 / 451.4 MB, free: 2.055 MB / 350.1 MB Notification: Performance of Templates: time 0.01426/0.3121, allocations: 10.17 MB / 461.6 MB, free: 7.895 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.984301779884845]