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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=2000,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=2000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00173/0.001731, allocations: 107.8 kB / 17.06 MB, free: 6.137 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001601/0.001601, allocations: 188 kB / 18 MB, free: 5.219 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001046/0.001046, allocations: 51.92 kB / 351.3 MB, free: 3.281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2643/0.2653, allocations: 49.42 MB / 400.7 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006636/0.272, allocations: 5.443 MB / 406.1 MB, free: 3.449 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003204/0.2752, allocations: 2.079 MB / 408.2 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004605/0.2757, allocations: 39.75 kB / 408.3 MB, free: 1.32 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004735/0.2762, allocations: 198.3 kB / 408.5 MB, free: 1.125 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003529/0.2766, allocations: 174.4 kB / 408.6 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008699/0.2775, allocations: 387.1 kB / 409 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009412/0.2784, allocations: 1.029 MB / 410 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008213/0.2793, allocations: 0.6025 MB / 410.6 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003626/0.2796, allocations: 346.8 kB / 411 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003507/0.28, allocations: 362.3 kB / 411.3 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.81e-05/0.2801, allocations: 92 kB / 411.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000221/0.2803, allocations: 155.9 kB / 411.6 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001669/0.2805, allocations: 203.4 kB / 411.8 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003437/0.2809, allocations: 430 kB / 412.2 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001088/0.2819, allocations: 1.185 MB / 413.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.282, allocations: 0 / 413.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.195e-06/0.282, allocations: 0 / 413.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.665e-05/0.282, allocations: 0 / 413.4 MB, free: 12.16 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.001471/0.2835, allocations: 1.022 MB / 414.4 MB, free: 11.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.2835, allocations: 16.03 kB / 414.4 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001205/0.2836, allocations: 91.84 kB / 414.5 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006716/0.2843, allocations: 0.518 MB / 415 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.686e-05/0.2844, allocations: 70.38 kB / 415.1 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001108/0.2845, allocations: 84.36 kB / 415.2 MB, free: 10.28 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001271/0.2858, allocations: 0.8086 MB / 416 MB, free: 9.438 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.542e-05/0.2858, allocations: 11.89 kB / 416 MB, free: 9.426 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.335e-05/0.2859, allocations: 36 kB / 416 MB, free: 9.391 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/0.2859, allocations: 20 kB / 416 MB, free: 9.371 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009159/0.2868, allocations: 499.6 kB / 416.5 MB, free: 8.883 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003044/0.2899, allocations: 2.86 MB / 419.4 MB, free: 5.898 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005368/0.2904, allocations: 220.4 kB / 419.6 MB, free: 5.672 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001851/0.2906, allocations: 113.1 kB / 419.7 MB, free: 5.559 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002167/0.2909, allocations: 255.3 kB / 420 MB, free: 5.254 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.109e-05/0.2909, allocations: 42.56 kB / 420 MB, free: 5.203 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.353e-06/0.2909, allocations: 0 / 420 MB, free: 5.203 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.002248/0.2932, allocations: 1.249 MB / 421.3 MB, free: 3.855 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.785e-05/0.2932, allocations: 55.41 kB / 421.3 MB, free: 3.789 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003059/0.2935, allocations: 300.5 kB / 421.6 MB, free: 3.484 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.371e-05/0.2936, allocations: 29.7 kB / 421.6 MB, free: 3.449 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002192/0.2938, allocations: 402.5 kB / 422 MB, free: 3.051 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.086e-05/0.2939, allocations: 134.1 kB / 422.2 MB, free: 2.918 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001137/0.294, allocations: 90.16 kB / 422.3 MB, free: 2.824 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.2941, allocations: 350.7 kB / 422.6 MB, free: 2.473 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001909/0.2943, allocations: 113.1 kB / 422.7 MB, free: 2.359 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00028/0.2946, allocations: 250.7 kB / 422.9 MB, free: 2.055 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004961/0.2951, allocations: 388.9 kB / 423.3 MB, free: 1.613 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2952, allocations: 0 / 423.3 MB, free: 1.613 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.000708/0.2959, allocations: 460.9 kB / 423.8 MB, free: 1.152 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.2959, allocations: 4.594 kB / 423.8 MB, free: 1.148 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.2959, allocations: 11.94 kB / 423.8 MB, free: 1.137 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001884/0.2961, allocations: 40.83 kB / 423.8 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003364/0.2964, allocations: 111.8 kB / 423.9 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003953/0.2969, allocations: 0.5523 MB / 424.5 MB, free: 416 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001689/0.297, allocations: 16 kB / 424.5 MB, free: 400 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.943e-05/0.2971, allocations: 20 kB / 424.5 MB, free: 380 kB / 334.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.000312/0.2974, allocations: 225.7 kB / 424.8 MB, free: 144 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.975e-05/0.2975, allocations: 43.53 kB / 424.8 MB, free: 100 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006208/0.2981, allocations: 325 kB / 425.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.2981, allocations: 0 / 425.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.2981, allocations: 8 kB / 425.1 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.2981, allocations: 3.984 kB / 425.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001323/0.2995, allocations: 1.015 MB / 426.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.2995, allocations: 0 / 426.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003498/0.2998, allocations: 75.91 kB / 426.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000123/0.3, allocations: 36.98 kB / 426.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.531e-05/0.3, allocations: 15.94 kB / 426.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003072/0.3003, allocations: 0.5445 MB / 426.8 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.3003, allocations: 7.969 kB / 426.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008356/0.3012, allocations: 0.5489 MB / 427.4 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.174e-05/0.3013, allocations: 108.6 kB / 427.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.278e-05/0.3013, allocations: 8 kB / 427.5 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001559/0.3015, allocations: 12 kB / 427.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.2e-05/0.3015, allocations: 20.06 kB / 427.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.252e-05/0.3016, allocations: 19.98 kB / 427.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001978/0.3018, allocations: 207 kB / 427.7 MB, free: 12.99 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3018, allocations: 0 / 427.7 MB, free: 12.99 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004663/0.3022, allocations: 124 kB / 427.9 MB, free: 12.87 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.0001843/0.3024, allocations: 123.2 kB / 428 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006011/0.3031, allocations: 315.4 kB / 428.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.3031, allocations: 0 / 428.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002643/0.3033, allocations: 145 kB / 428.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005132/0.3039, allocations: 79.23 kB / 428.5 MB, free: 12.22 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002471/0.3063, allocations: 1.555 MB / 430.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005386/0.3069, allocations: 0.921 MB / 431 MB, free: 9.672 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001422/0.307, allocations: 43.34 kB / 431 MB, free: 9.629 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.778e-05/0.3071, allocations: 31.44 kB / 431.1 MB, free: 9.598 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3071, allocations: 4 kB / 431.1 MB, free: 9.594 MB / 350.1 MB Notification: Performance of Templates: time 0.008592/0.3157, allocations: 3.846 MB / 434.9 MB, free: 5.781 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches