Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001427/0.001427, allocations: 103.6 kB / 21.18 MB, free: 0.6445 MB / 14.72 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.00159/0.00159, allocations: 209 kB / 24.48 MB, free: 3.938 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.482/1.482, allocations: 230.6 MB / 258.2 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001627/0.001627, allocations: 47.92 kB / 379 MB, free: 2.469 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2579/0.2595, allocations: 53.36 MB / 432.3 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007143/0.2667, allocations: 4.838 MB / 437.2 MB, free: 1.855 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00406/0.2707, allocations: 2.068 MB / 439.2 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006716/0.2714, allocations: 51.56 kB / 439.3 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005199/0.2719, allocations: 206.2 kB / 439.5 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004481/0.2724, allocations: 174.4 kB / 439.7 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009366/0.2733, allocations: 411 kB / 440.1 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001086/0.2744, allocations: 1.002 MB / 441.1 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006649/0.275, allocations: 393.4 kB / 441.4 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004798/0.2755, allocations: 354.8 kB / 441.8 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004177/0.2759, allocations: 322.3 kB / 442.1 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001237/0.2761, allocations: 92 kB / 442.2 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000293/0.2764, allocations: 155.9 kB / 442.3 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001991/0.2766, allocations: 207.4 kB / 442.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003367/0.2769, allocations: 342.5 kB / 442.9 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001303/0.2782, allocations: 1.201 MB / 444.1 MB, free: 10.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.2782, allocations: 4 kB / 444.1 MB, free: 10.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.2782, allocations: 0 / 444.1 MB, free: 10.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.65e-05/0.2782, allocations: 0 / 444.1 MB, free: 10.89 MB / 350.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.001547/0.2798, allocations: 0.9804 MB / 445.1 MB, free: 9.879 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.2798, allocations: 8.031 kB / 445.1 MB, free: 9.871 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002501/0.2801, allocations: 100.4 kB / 445.2 MB, free: 9.773 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000889/0.2809, allocations: 472.2 kB / 445.6 MB, free: 9.285 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.277e-05/0.281, allocations: 62.38 kB / 445.7 MB, free: 9.223 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001342/0.2811, allocations: 92.33 kB / 445.8 MB, free: 9.133 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001452/0.2826, allocations: 0.8008 MB / 446.6 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.586e-05/0.2826, allocations: 4 kB / 446.6 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.562e-05/0.2827, allocations: 36 kB / 446.6 MB, free: 8.258 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.164e-05/0.2827, allocations: 20 kB / 446.6 MB, free: 8.238 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001007/0.2837, allocations: 0.4918 MB / 447.1 MB, free: 7.742 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003286/0.287, allocations: 2.477 MB / 449.6 MB, free: 5.164 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005946/0.2876, allocations: 209.9 kB / 449.8 MB, free: 4.949 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000184/0.2878, allocations: 88.83 kB / 449.9 MB, free: 4.859 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001155/0.2879, allocations: 23.98 kB / 449.9 MB, free: 4.836 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.453e-05/0.288, allocations: 38.98 kB / 450 MB, free: 4.789 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.525e-06/0.288, allocations: 0 / 450 MB, free: 4.789 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002463/0.2904, allocations: 1.127 MB / 451.1 MB, free: 3.602 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.977e-05/0.2905, allocations: 55.41 kB / 451.1 MB, free: 3.535 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000355/0.2908, allocations: 321.5 kB / 451.5 MB, free: 3.215 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.837e-05/0.2908, allocations: 29.7 kB / 451.5 MB, free: 3.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002956/0.2911, allocations: 411.7 kB / 451.9 MB, free: 2.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001141/0.2913, allocations: 142.8 kB / 452 MB, free: 2.629 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001268/0.2914, allocations: 86.14 kB / 452.1 MB, free: 2.539 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001764/0.2916, allocations: 350.7 kB / 452.5 MB, free: 2.188 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002173/0.2918, allocations: 113 kB / 452.6 MB, free: 2.078 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003901/0.2922, allocations: 248.7 kB / 452.8 MB, free: 1.773 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005845/0.2928, allocations: 400.6 kB / 453.2 MB, free: 1.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2928, allocations: 0 / 453.2 MB, free: 1.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007722/0.2935, allocations: 458 kB / 453.6 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.2935, allocations: 4 kB / 453.7 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.2936, allocations: 8.031 kB / 453.7 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002014/0.2938, allocations: 44.77 kB / 453.7 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003755/0.2941, allocations: 103.9 kB / 453.8 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004625/0.2946, allocations: 0.5601 MB / 454.4 MB, free: 120 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001812/0.2948, allocations: 16 kB / 454.4 MB, free: 104 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.976e-05/0.2948, allocations: 20 kB / 454.4 MB, free: 84 kB / 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.0003295/0.2951, allocations: 221.7 kB / 454.6 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.796e-05/0.2952, allocations: 39.77 kB / 454.7 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006607/0.2959, allocations: 333.6 kB / 455 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.619e-06/0.2959, allocations: 4 kB / 455 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.2959, allocations: 0 / 455 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.104e-06/0.2959, allocations: 3.984 kB / 455 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001389/0.2973, allocations: 0.8442 MB / 455.8 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.2973, allocations: 8.031 kB / 455.8 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003528/0.2976, allocations: 71.91 kB / 455.9 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001294/0.2978, allocations: 40.83 kB / 456 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.501e-05/0.2978, allocations: 8 kB / 456 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004022/0.2982, allocations: 0.5522 MB / 456.5 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.2982, allocations: 4.031 kB / 456.5 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008155/0.299, allocations: 0.5409 MB / 457.1 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.252e-05/0.2991, allocations: 43.75 kB / 457.1 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.577e-05/0.2991, allocations: 12 kB / 457.1 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001525/0.2993, allocations: 8.188 kB / 457.1 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.032e-05/0.2994, allocations: 23.95 kB / 457.1 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.968e-05/0.2994, allocations: 11.94 kB / 457.2 MB, free: 13.19 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002401/0.2996, allocations: 215.2 kB / 457.4 MB, free: 12.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2996, allocations: 96 / 457.4 MB, free: 12.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000507/0.3001, allocations: 119.9 kB / 457.5 MB, free: 12.86 MB / 366.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.0001812/0.3003, allocations: 127.1 kB / 457.6 MB, free: 12.73 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006195/0.3009, allocations: 295.7 kB / 457.9 MB, free: 12.44 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.3009, allocations: 0 / 457.9 MB, free: 12.44 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002818/0.3012, allocations: 137 kB / 458 MB, free: 12.31 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005108/0.3017, allocations: 73.64 kB / 458.1 MB, free: 12.24 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002757/0.3045, allocations: 1.645 MB / 459.7 MB, free: 10.54 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000371/0.3048, allocations: 325.6 kB / 460.1 MB, free: 10.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.378e-05/0.3049, allocations: 39.38 kB / 460.1 MB, free: 10.16 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3049, allocations: 0 / 460.1 MB, free: 10.16 MB / 366.1 MB Notification: Performance of Templates: time 0.0165/0.3214, allocations: 10.19 MB / 470.3 MB, free: 15.97 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.842962771654129]