Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.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.First,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First",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.001281/0.001281, allocations: 113.8 kB / 17.06 MB, free: 5.996 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.001234/0.001234, allocations: 193.4 kB / 18.01 MB, free: 5.07 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.401/1.401, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001409/0.001409, allocations: 51.92 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.262, allocations: 49.43 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.004552/0.2666, allocations: 2.36 MB / 402.6 MB, free: 6.434 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00128/0.2679, allocations: 0.5765 MB / 403.2 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002543/0.2681, allocations: 4 kB / 403.2 MB, free: 5.848 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001938/0.2683, allocations: 35.59 kB / 403.2 MB, free: 5.812 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000261/0.2687, allocations: 79.33 kB / 403.3 MB, free: 5.734 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002553/0.2689, allocations: 55.92 kB / 403.3 MB, free: 5.68 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004058/0.2693, allocations: 274.7 kB / 403.6 MB, free: 5.41 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002483/0.2696, allocations: 102.7 kB / 403.7 MB, free: 5.309 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002237/0.2698, allocations: 103.6 kB / 403.8 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002054/0.27, allocations: 115.4 kB / 403.9 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.225e-05/0.2701, allocations: 24 kB / 403.9 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.874e-05/0.2702, allocations: 24 kB / 404 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.529e-05/0.2702, allocations: 43.84 kB / 404 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001515/0.2704, allocations: 123.4 kB / 404.1 MB, free: 4.883 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003957/0.2708, allocations: 262 kB / 404.4 MB, free: 4.629 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.758e-06/0.2708, allocations: 0 / 404.4 MB, free: 4.629 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.677e-06/0.2708, allocations: 0 / 404.4 MB, free: 4.629 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.255e-05/0.2708, allocations: 7.938 kB / 404.4 MB, free: 4.621 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0009301/0.2718, allocations: 0.5338 MB / 404.9 MB, free: 4.039 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/0.2718, allocations: 11.89 kB / 404.9 MB, free: 4.027 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.003e-05/0.2719, allocations: 54.73 kB / 405 MB, free: 3.965 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.579e-05/0.272, allocations: 28.75 kB / 405 MB, free: 3.938 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004314/0.2724, allocations: 245.4 kB / 405.3 MB, free: 3.656 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.973e-05/0.2724, allocations: 16.81 kB / 405.3 MB, free: 3.641 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.299e-05/0.2725, allocations: 32.27 kB / 405.3 MB, free: 3.609 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003946/0.2729, allocations: 195.4 kB / 405.5 MB, free: 3.414 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.08e-05/0.2729, allocations: 4 kB / 405.5 MB, free: 3.41 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.2e-05/0.273, allocations: 8 kB / 405.5 MB, free: 3.402 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.273, allocations: 4 kB / 405.5 MB, free: 3.398 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003109/0.2733, allocations: 141.7 kB / 405.7 MB, free: 3.254 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001109/0.2744, allocations: 0.627 MB / 406.3 MB, free: 2.578 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003312/0.2748, allocations: 178.5 kB / 406.5 MB, free: 2.395 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001768/0.2749, allocations: 100.2 kB / 406.6 MB, free: 2.297 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.192e-05/0.275, allocations: 4 kB / 406.6 MB, free: 2.293 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.726e-05/0.275, allocations: 34.5 kB / 406.6 MB, free: 2.25 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.645e-06/0.275, allocations: 0 / 406.6 MB, free: 2.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.002069/0.2771, allocations: 1.076 MB / 407.7 MB, free: 1.086 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.818e-05/0.2772, allocations: 59.34 kB / 407.7 MB, free: 1.016 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000204/0.2774, allocations: 184 kB / 407.9 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.618e-05/0.2774, allocations: 33.7 kB / 407.9 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.2775, allocations: 144.8 kB / 408.1 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.66e-05/0.2776, allocations: 115 kB / 408.2 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.448e-05/0.2777, allocations: 49.7 kB / 408.2 MB, free: 480 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.2779, allocations: 334.8 kB / 408.6 MB, free: 136 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001543/0.278, allocations: 71.97 kB / 408.6 MB, free: 64 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002097/0.2783, allocations: 119.5 kB / 408.8 MB, free: 15.94 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003402/0.2786, allocations: 185.3 kB / 408.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.2786, allocations: 0 / 408.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005434/0.2792, allocations: 302.3 kB / 409.2 MB, free: 15.45 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.2792, allocations: 12 kB / 409.2 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.2792, allocations: 0 / 409.2 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001844/0.2794, allocations: 48.77 kB / 409.3 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002502/0.2797, allocations: 59.91 kB / 409.3 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001707/0.2814, allocations: 1.74 MB / 411.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001303/0.2815, allocations: 8.031 kB / 411.1 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.881e-05/0.2816, allocations: 8 kB / 411.1 MB, free: 13.43 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (32): * Single equations (assignments): 31 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001608/0.2817, allocations: 145.8 kB / 411.2 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.238e-05/0.2818, allocations: 27.8 kB / 411.3 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.76e-05/0.2818, allocations: 26.66 kB / 411.3 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.2819, allocations: 4 kB / 411.3 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.2819, allocations: 0 / 411.3 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.2819, allocations: 3.984 kB / 411.3 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001198/0.2831, allocations: 0.7816 MB / 412.1 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.2831, allocations: 0 / 412.1 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002612/0.2834, allocations: 55.91 kB / 412.1 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000127/0.2835, allocations: 32.84 kB / 412.2 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.096e-05/0.2835, allocations: 16.08 kB / 412.2 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001332/0.2849, allocations: 1.489 MB / 413.7 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.2849, allocations: 4.031 kB / 413.7 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007411/0.2856, allocations: 478.7 kB / 414.2 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.357e-05/0.2857, allocations: 96.97 kB / 414.2 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.27e-05/0.2858, allocations: 12.03 kB / 414.3 MB, free: 9.988 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001393/0.2859, allocations: 8 kB / 414.3 MB, free: 9.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.296e-05/0.286, allocations: 23.97 kB / 414.3 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.07e-05/0.286, allocations: 12 kB / 414.3 MB, free: 9.945 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001146/0.2861, allocations: 127.2 kB / 414.4 MB, free: 9.82 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2862, allocations: 3.938 kB / 414.4 MB, free: 9.816 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003906/0.2866, allocations: 76 kB / 414.5 MB, free: 9.742 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (29): * Single equations (assignments): 28 * 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.001084/0.2876, allocations: 1.021 MB / 415.5 MB, free: 8.684 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006699/0.2883, allocations: 335.6 kB / 415.9 MB, free: 8.344 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.2883, allocations: 0 / 415.9 MB, free: 8.344 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003734/0.2887, allocations: 246.8 kB / 416.1 MB, free: 8.09 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000439/0.2892, allocations: 43.86 kB / 416.1 MB, free: 8.047 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003836/0.293, allocations: 2.769 MB / 418.9 MB, free: 5.16 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004253/0.2935, allocations: 0.7525 MB / 419.7 MB, free: 4.383 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.747e-05/0.2936, allocations: 26.27 kB / 419.7 MB, free: 4.359 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000134/0.2937, allocations: 75.41 kB / 419.8 MB, free: 4.285 MB / 334.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2937, allocations: 0 / 419.8 MB, free: 4.285 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03453/0.3283, allocations: 5.24 MB / 425 MB, free: 15.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.917/10.25, allocations: 3.938 kB / 425 MB, free: 15.15 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_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_First.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches