Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001252/0.001252, allocations: 118.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001381/0.001382, allocations: 198 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 55.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2623/0.2636, allocations: 50.55 MB / 408.7 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003856/0.2675, allocations: 2.363 MB / 411.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001313/0.2689, allocations: 0.6465 MB / 411.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002425/0.2691, allocations: 4 kB / 411.8 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001975/0.2694, allocations: 43.58 kB / 411.8 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002378/0.2696, allocations: 63.42 kB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003083/0.27, allocations: 67.84 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003827/0.2704, allocations: 262.7 kB / 412.2 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002347/0.2706, allocations: 92.27 kB / 412.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002646/0.2709, allocations: 115.6 kB / 412.4 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002043/0.2711, allocations: 103.4 kB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.398e-05/0.2711, allocations: 16 kB / 412.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.725e-05/0.2712, allocations: 28 kB / 412.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.547e-05/0.2713, allocations: 47.83 kB / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00014/0.2714, allocations: 115.4 kB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003768/0.2718, allocations: 254.1 kB / 412.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.2718, allocations: 0 / 412.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2718, allocations: 0 / 412.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.574e-05/0.2719, allocations: 0 / 412.9 MB, free: 13.32 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008259/0.2727, allocations: 0.522 MB / 413.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.2727, allocations: 12.03 kB / 413.5 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.361e-05/0.2728, allocations: 54.73 kB / 413.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002039/0.273, allocations: 36.78 kB / 413.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003809/0.2734, allocations: 248.7 kB / 413.8 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.876e-05/0.2735, allocations: 12.81 kB / 413.8 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.856e-05/0.2735, allocations: 20.38 kB / 413.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003949/0.2739, allocations: 214 kB / 414.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.333e-05/0.2739, allocations: 11.89 kB / 414.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.156e-05/0.274, allocations: 8 kB / 414.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.274, allocations: 8 kB / 414.1 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002613/0.2743, allocations: 121.7 kB / 414.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001054/0.2753, allocations: 0.7055 MB / 414.9 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002693/0.2756, allocations: 154.5 kB / 415.1 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001282/0.2757, allocations: 72.81 kB / 415.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.013e-05/0.2758, allocations: 0 / 415.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.795e-05/0.2758, allocations: 42.55 kB / 415.2 MB, free: 10.91 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.152e-06/0.2758, allocations: 0 / 415.2 MB, free: 10.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001608/0.2774, allocations: 0.889 MB / 416.1 MB, free: 9.938 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.335e-05/0.2775, allocations: 55.41 kB / 416.1 MB, free: 9.871 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001584/0.2776, allocations: 168.9 kB / 416.3 MB, free: 9.691 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.85e-05/0.2777, allocations: 33.7 kB / 416.3 MB, free: 9.652 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.388e-05/0.2778, allocations: 156.3 kB / 416.5 MB, free: 9.496 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.856e-05/0.2779, allocations: 87.28 kB / 416.5 MB, free: 9.41 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.119e-05/0.2779, allocations: 49.64 kB / 416.6 MB, free: 9.355 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.2781, allocations: 330.8 kB / 416.9 MB, free: 9.023 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001203/0.2782, allocations: 55.97 kB / 417 MB, free: 8.969 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001465/0.2783, allocations: 100.2 kB / 417.1 MB, free: 8.855 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000288/0.2786, allocations: 172.1 kB / 417.2 MB, free: 8.672 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.2787, allocations: 0 / 417.2 MB, free: 8.672 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004777/0.2791, allocations: 258.1 kB / 417.5 MB, free: 8.41 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.225e-05/0.2792, allocations: 8 kB / 417.5 MB, free: 8.402 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.2792, allocations: 0 / 417.5 MB, free: 8.402 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001806/0.2794, allocations: 32.83 kB / 417.5 MB, free: 8.367 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002064/0.2796, allocations: 51.86 kB / 417.6 MB, free: 8.316 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001286/0.2809, allocations: 1.481 MB / 419.1 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001406/0.281, allocations: 11.98 kB / 419.1 MB, free: 6.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.685e-05/0.2811, allocations: 12.06 kB / 419.1 MB, free: 6.668 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (28): * Single equations (assignments): 27 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001464/0.2812, allocations: 141.7 kB / 419.2 MB, free: 6.52 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.612e-05/0.2813, allocations: 19.86 kB / 419.2 MB, free: 6.5 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.497e-05/0.2813, allocations: 30 kB / 419.3 MB, free: 6.469 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.2813, allocations: 11.92 kB / 419.3 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.2814, allocations: 0 / 419.3 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.2814, allocations: 0 / 419.3 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009461/0.2823, allocations: 0.6477 MB / 419.9 MB, free: 5.742 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.2823, allocations: 0 / 419.9 MB, free: 5.742 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002134/0.2825, allocations: 47.91 kB / 420 MB, free: 5.695 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001336/0.2827, allocations: 32.84 kB / 420 MB, free: 5.66 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.78e-05/0.2827, allocations: 8.062 kB / 420 MB, free: 5.652 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001193/0.2839, allocations: 1.492 MB / 421.5 MB, free: 4.02 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.2839, allocations: 0 / 421.5 MB, free: 4.02 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005815/0.2845, allocations: 398.1 kB / 421.9 MB, free: 3.605 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.089e-05/0.2846, allocations: 97.03 kB / 422 MB, free: 3.492 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.773e-05/0.2846, allocations: 8 kB / 422 MB, free: 3.484 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001249/0.2848, allocations: 7.938 kB / 422 MB, free: 3.477 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.968e-05/0.2848, allocations: 19.95 kB / 422 MB, free: 3.457 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.293e-05/0.2849, allocations: 12 kB / 422 MB, free: 3.445 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001166/0.285, allocations: 128.1 kB / 422.2 MB, free: 3.32 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.285, allocations: 0 / 422.2 MB, free: 3.32 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003426/0.2853, allocations: 56 kB / 422.2 MB, free: 3.266 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * 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 (21): * Single equations (assignments): 20 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008853/0.2862, allocations: 0.9408 MB / 423.2 MB, free: 2.293 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005609/0.2868, allocations: 302.5 kB / 423.5 MB, free: 1.984 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2868, allocations: 0 / 423.5 MB, free: 1.984 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003096/0.2871, allocations: 210.6 kB / 423.7 MB, free: 1.766 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004287/0.2876, allocations: 52.36 kB / 423.7 MB, free: 1.715 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00334/0.2909, allocations: 2.542 MB / 426.3 MB, free: 15.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003659/0.2913, allocations: 0.7482 MB / 427 MB, free: 14.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.856e-05/0.2914, allocations: 21.94 kB / 427 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001037/0.2915, allocations: 63.42 kB / 427.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of SimCode: time 7.21e-07/0.2915, allocations: 0 / 427.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.031/0.3226, allocations: 4.763 MB / 431.9 MB, free: 9.559 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.84/10.16, allocations: 6.094 kB / 431.9 MB, free: 9.559 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches