Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001403/0.001403, allocations: 200 kB / 18.01 MB, free: 5.047 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.312/1.312, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001069/0.001069, allocations: 47.92 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2792/0.2803, allocations: 49.43 MB / 400.2 MB, free: 8.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.004163/0.2845, allocations: 2.345 MB / 402.6 MB, free: 6.461 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001174/0.2857, allocations: 0.5804 MB / 403.2 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001804/0.2859, allocations: 7.938 kB / 403.2 MB, free: 5.867 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001656/0.2861, allocations: 35.66 kB / 403.2 MB, free: 5.832 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001801/0.2863, allocations: 79.33 kB / 403.3 MB, free: 5.754 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002226/0.2865, allocations: 47.94 kB / 403.3 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000305/0.2868, allocations: 266.7 kB / 403.6 MB, free: 5.445 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001883/0.287, allocations: 80.36 kB / 403.7 MB, free: 5.367 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001584/0.2872, allocations: 103.6 kB / 403.8 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000144/0.2873, allocations: 103.5 kB / 403.9 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.662e-05/0.2874, allocations: 24 kB / 403.9 MB, free: 5.141 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.239e-05/0.2874, allocations: 20 kB / 403.9 MB, free: 5.121 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.3e-05/0.2875, allocations: 47.77 kB / 404 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000107/0.2876, allocations: 115.5 kB / 404.1 MB, free: 4.961 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003126/0.2879, allocations: 250.1 kB / 404.3 MB, free: 4.719 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2879, allocations: 0 / 404.3 MB, free: 4.719 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2879, allocations: 0 / 404.3 MB, free: 4.719 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.288, allocations: 0 / 404.3 MB, free: 4.719 MB / 318.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.0007096/0.2887, allocations: 0.5144 MB / 404.8 MB, free: 4.156 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.2887, allocations: 12.03 kB / 404.8 MB, free: 4.145 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.526e-05/0.2888, allocations: 54.67 kB / 404.9 MB, free: 4.082 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.291e-05/0.2888, allocations: 32.75 kB / 404.9 MB, free: 4.051 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003423/0.2892, allocations: 237.4 kB / 405.2 MB, free: 3.777 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.962e-05/0.2892, allocations: 16.81 kB / 405.2 MB, free: 3.762 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.432e-05/0.2893, allocations: 24.38 kB / 405.2 MB, free: 3.738 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003751/0.2897, allocations: 214 kB / 405.4 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.997e-05/0.2897, allocations: 3.953 kB / 405.4 MB, free: 3.512 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.298e-05/0.2897, allocations: 12 kB / 405.4 MB, free: 3.5 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.233e-05/0.2897, allocations: 4 kB / 405.4 MB, free: 3.496 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002444/0.29, allocations: 125.6 kB / 405.5 MB, free: 3.371 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009965/0.291, allocations: 0.7133 MB / 406.3 MB, free: 2.605 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002603/0.2913, allocations: 145.9 kB / 406.4 MB, free: 2.457 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001229/0.2914, allocations: 72.77 kB / 406.5 MB, free: 2.383 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.155e-05/0.2914, allocations: 7.938 kB / 406.5 MB, free: 2.375 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.081e-05/0.2915, allocations: 38.56 kB / 406.5 MB, free: 2.328 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.894e-06/0.2915, allocations: 0 / 406.5 MB, free: 2.328 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001533/0.293, allocations: 0.8867 MB / 407.4 MB, free: 1.352 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.448e-05/0.2931, allocations: 55.41 kB / 407.5 MB, free: 1.285 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001606/0.2932, allocations: 175.2 kB / 407.6 MB, free: 1.102 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.849e-05/0.2932, allocations: 29.7 kB / 407.7 MB, free: 1.066 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.079e-05/0.2933, allocations: 144.4 kB / 407.8 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.901e-05/0.2934, allocations: 91.22 kB / 407.9 MB, free: 0.832 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.191e-05/0.2935, allocations: 49.7 kB / 407.9 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.2937, allocations: 330.8 kB / 408.3 MB, free: 456 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001131/0.2938, allocations: 51.98 kB / 408.3 MB, free: 404 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000137/0.2939, allocations: 108.2 kB / 408.4 MB, free: 280 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002965/0.2942, allocations: 168.1 kB / 408.6 MB, free: 96 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.2942, allocations: 0 / 408.6 MB, free: 96 kB / 318.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004286/0.2947, allocations: 254.1 kB / 408.8 MB, free: 15.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.2947, allocations: 6.656 kB / 408.8 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.2947, allocations: 4 kB / 408.8 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001578/0.2949, allocations: 32.84 kB / 408.9 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002118/0.2951, allocations: 51.91 kB / 408.9 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001177/0.2963, allocations: 1.485 MB / 410.4 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001245/0.2964, allocations: 12.06 kB / 410.4 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.908e-05/0.2964, allocations: 8 kB / 410.4 MB, free: 14.09 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.0001268/0.2966, allocations: 139.1 kB / 410.6 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.954e-05/0.2966, allocations: 23.84 kB / 410.6 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.656e-05/0.2967, allocations: 21.88 kB / 410.6 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.2967, allocations: 7.938 kB / 410.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.2967, allocations: 0 / 410.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.2967, allocations: 0 / 410.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00087/0.2976, allocations: 0.652 MB / 411.3 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.2976, allocations: 3.938 kB / 411.3 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002099/0.2978, allocations: 47.92 kB / 411.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001167/0.2979, allocations: 36.89 kB / 411.4 MB, free: 13.08 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.449e-05/0.298, allocations: 4 kB / 411.4 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001229/0.2992, allocations: 1.489 MB / 412.8 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.2992, allocations: 0 / 412.8 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005392/0.2998, allocations: 408.5 kB / 413.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.954e-05/0.2998, allocations: 96.97 kB / 413.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.612e-05/0.2999, allocations: 8.031 kB / 413.3 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001231/0.3, allocations: 8 kB / 413.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.223e-05/0.3001, allocations: 19.92 kB / 413.4 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.26e-05/0.3001, allocations: 7.984 kB / 413.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001145/0.3002, allocations: 132.8 kB / 413.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3002, allocations: 0 / 413.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000327/0.3005, allocations: 64 kB / 413.6 MB, free: 10.67 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.0008743/0.3014, allocations: 0.9453 MB / 414.5 MB, free: 9.691 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005517/0.302, allocations: 293.2 kB / 414.8 MB, free: 9.395 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.302, allocations: 0 / 414.8 MB, free: 9.395 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003084/0.3023, allocations: 210.6 kB / 415 MB, free: 9.176 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004287/0.3027, allocations: 52.22 kB / 415.1 MB, free: 9.125 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003135/0.3059, allocations: 2.529 MB / 417.6 MB, free: 6.473 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003298/0.3062, allocations: 0.7481 MB / 418.3 MB, free: 5.691 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.93e-05/0.3063, allocations: 25.92 kB / 418.4 MB, free: 5.668 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001077/0.3065, allocations: 63.42 kB / 418.4 MB, free: 5.609 MB / 334.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3065, allocations: 0 / 418.4 MB, free: 5.609 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03774/0.3442, allocations: 4.723 MB / 423.2 MB, free: 1.02 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.652/9.996, allocations: 17.89 kB / 423.2 MB, free: 1.008 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches