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.001526/0.001526, allocations: 112.2 kB / 21.19 MB, free: 0.7578 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.001705/0.001705, allocations: 209.8 kB / 24.49 MB, free: 4.133 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.428/1.428, allocations: 230.6 MB / 258.2 MB, free: 8.246 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.00152/0.00152, allocations: 43.92 kB / 379 MB, free: 2.695 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.262, allocations: 53.37 MB / 432.4 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.00752/0.2695, allocations: 5.48 MB / 437.9 MB, free: 1.445 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00418/0.2737, allocations: 2.176 MB / 440 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008198/0.2745, allocations: 47.62 kB / 440.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005189/0.275, allocations: 210.2 kB / 440.3 MB, free: 15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004837/0.2755, allocations: 174.4 kB / 440.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001044/0.2766, allocations: 422.8 kB / 440.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001192/0.2777, allocations: 1.005 MB / 441.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006804/0.2784, allocations: 417.6 kB / 442.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005149/0.2789, allocations: 358.8 kB / 442.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004485/0.2794, allocations: 370.3 kB / 443 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001211/0.2795, allocations: 92 kB / 443.1 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002671/0.2798, allocations: 155.9 kB / 443.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001988/0.28, allocations: 207.4 kB / 443.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000405/0.2804, allocations: 433.9 kB / 443.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001398/0.2818, allocations: 1.2 MB / 445.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.306e-06/0.2818, allocations: 4 kB / 445.1 MB, free: 10.19 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2818, allocations: 0 / 445.1 MB, free: 10.19 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.611e-05/0.2818, allocations: 0 / 445.1 MB, free: 10.19 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.001611/0.2834, allocations: 0.991 MB / 446.1 MB, free: 9.172 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.2835, allocations: 12.03 kB / 446.1 MB, free: 9.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002452/0.2837, allocations: 96.38 kB / 446.2 MB, free: 9.066 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008459/0.2845, allocations: 460.3 kB / 446.6 MB, free: 8.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.469e-05/0.2846, allocations: 66.38 kB / 446.7 MB, free: 8.523 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001235/0.2847, allocations: 88.33 kB / 446.8 MB, free: 8.438 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001422/0.2862, allocations: 0.8008 MB / 447.6 MB, free: 7.602 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.965e-05/0.2862, allocations: 11.98 kB / 447.6 MB, free: 7.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.157e-05/0.2863, allocations: 32 kB / 447.6 MB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.174e-05/0.2863, allocations: 20 kB / 447.6 MB, free: 7.539 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009918/0.2873, allocations: 0.4957 MB / 448.1 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003459/0.2907, allocations: 2.773 MB / 450.9 MB, free: 4.152 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005594/0.2913, allocations: 203.5 kB / 451.1 MB, free: 3.941 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001891/0.2915, allocations: 92.77 kB / 451.2 MB, free: 3.848 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001163/0.2916, allocations: 23.98 kB / 451.2 MB, free: 3.824 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/0.2916, allocations: 31.06 kB / 451.3 MB, free: 3.785 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.703e-06/0.2916, allocations: 0 / 451.3 MB, free: 3.785 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002393/0.294, allocations: 1.124 MB / 452.4 MB, free: 2.602 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.011e-05/0.2941, allocations: 55.41 kB / 452.4 MB, free: 2.535 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003519/0.2944, allocations: 313.7 kB / 452.7 MB, free: 2.223 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.61e-05/0.2944, allocations: 29.7 kB / 452.8 MB, free: 2.188 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002908/0.2947, allocations: 411.7 kB / 453.2 MB, free: 1.777 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001204/0.2949, allocations: 142.8 kB / 453.3 MB, free: 1.637 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001195/0.295, allocations: 90.09 kB / 453.4 MB, free: 1.543 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.2952, allocations: 354.7 kB / 453.7 MB, free: 1.188 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002101/0.2954, allocations: 105 kB / 453.8 MB, free: 1.086 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003367/0.2957, allocations: 254 kB / 454.1 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005545/0.2963, allocations: 392.6 kB / 454.5 MB, free: 336 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.2963, allocations: 4 kB / 454.5 MB, free: 332 kB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007651/0.297, allocations: 461.7 kB / 454.9 MB, free: 15.86 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.298e-05/0.2971, allocations: 8 kB / 454.9 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/0.2971, allocations: 7.984 kB / 454.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002072/0.2973, allocations: 36.83 kB / 455 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003576/0.2976, allocations: 115.8 kB / 455.1 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004549/0.2981, allocations: 0.5604 MB / 455.7 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001905/0.2983, allocations: 20 kB / 455.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.701e-05/0.2983, allocations: 16 kB / 455.7 MB, free: 15.07 MB / 366.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.0003124/0.2986, allocations: 225.6 kB / 455.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.563e-05/0.2987, allocations: 35.77 kB / 455.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006367/0.2993, allocations: 322.5 kB / 456.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.2993, allocations: 4 kB / 456.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.2993, allocations: 0 / 456.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.263e-06/0.2993, allocations: 3.984 kB / 456.3 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001534/0.3009, allocations: 0.9915 MB / 457.3 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.3009, allocations: 0 / 457.3 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003789/0.3013, allocations: 83.89 kB / 457.3 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001444/0.3014, allocations: 28.84 kB / 457.4 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.459e-05/0.3014, allocations: 11.94 kB / 457.4 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004039/0.3018, allocations: 0.5484 MB / 457.9 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.3018, allocations: 4.25 kB / 457.9 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008162/0.3027, allocations: 0.545 MB / 458.5 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.414e-05/0.3027, allocations: 35.77 kB / 458.5 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.665e-05/0.3028, allocations: 8 kB / 458.5 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000159/0.3029, allocations: 8 kB / 458.5 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.519e-05/0.303, allocations: 27.98 kB / 458.6 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.488e-05/0.303, allocations: 11.98 kB / 458.6 MB, free: 12.04 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002371/0.3033, allocations: 219.1 kB / 458.8 MB, free: 11.83 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3033, allocations: 0 / 458.8 MB, free: 11.83 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005306/0.3038, allocations: 127.9 kB / 458.9 MB, free: 11.71 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.0001931/0.304, allocations: 119.1 kB / 459 MB, free: 11.58 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006327/0.3046, allocations: 300.7 kB / 459.3 MB, free: 11.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3046, allocations: 4.062 kB / 459.3 MB, free: 11.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002841/0.3049, allocations: 135.8 kB / 459.5 MB, free: 11.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000503/0.3054, allocations: 82.8 kB / 459.5 MB, free: 11.08 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00271/0.3081, allocations: 1.633 MB / 461.2 MB, free: 9.391 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000637/0.3087, allocations: 0.9249 MB / 462.1 MB, free: 8.441 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.116e-05/0.3088, allocations: 35.44 kB / 462.1 MB, free: 8.406 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3088, allocations: 0 / 462.1 MB, free: 8.406 MB / 366.1 MB Notification: Performance of Templates: time 0.01407/0.3229, allocations: 9.887 MB / 472 MB, free: 14.53 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.3981907840352505]