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.001251/0.001251, allocations: 107.3 kB / 17.06 MB, free: 6.016 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.001185/0.001185, allocations: 188 kB / 18 MB, free: 5.102 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.313/1.313, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001114/0.001114, allocations: 47.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2708/0.2719, allocations: 49.45 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003897/0.2758, allocations: 2.35 MB / 402.6 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001031/0.2769, allocations: 0.5765 MB / 403.2 MB, free: 5.871 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001536/0.2771, allocations: 7.938 kB / 403.2 MB, free: 5.863 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001597/0.2773, allocations: 39.64 kB / 403.2 MB, free: 5.824 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001689/0.2775, allocations: 75.28 kB / 403.3 MB, free: 5.75 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002045/0.2777, allocations: 59.86 kB / 403.3 MB, free: 5.691 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002905/0.278, allocations: 274.7 kB / 403.6 MB, free: 5.422 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002237/0.2782, allocations: 102.7 kB / 403.7 MB, free: 5.32 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001547/0.2784, allocations: 111.6 kB / 403.8 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001626/0.2785, allocations: 115.4 kB / 403.9 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.713e-05/0.2786, allocations: 20 kB / 403.9 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.326e-05/0.2786, allocations: 20 kB / 404 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.705e-05/0.2787, allocations: 47.84 kB / 404 MB, free: 5.012 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001263/0.2788, allocations: 127.4 kB / 404.1 MB, free: 4.887 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000327/0.2791, allocations: 266 kB / 404.4 MB, free: 4.629 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2791, allocations: 0 / 404.4 MB, free: 4.629 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.388e-06/0.2792, allocations: 0 / 404.4 MB, free: 4.629 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.2792, allocations: 3.938 kB / 404.4 MB, free: 4.625 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.000842/0.28, allocations: 0.526 MB / 404.9 MB, free: 4.051 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/0.2801, allocations: 15.89 kB / 404.9 MB, free: 4.035 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.456e-05/0.2801, allocations: 54.73 kB / 405 MB, free: 3.973 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.175e-05/0.2802, allocations: 28.75 kB / 405 MB, free: 3.945 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003612/0.2806, allocations: 249.4 kB / 405.3 MB, free: 3.66 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.093e-05/0.2806, allocations: 20.81 kB / 405.3 MB, free: 3.641 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.158e-05/0.2806, allocations: 20.33 kB / 405.3 MB, free: 3.621 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003726/0.281, allocations: 203.3 kB / 405.5 MB, free: 3.418 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.936e-05/0.281, allocations: 4 kB / 405.5 MB, free: 3.414 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.096e-05/0.2811, allocations: 8 kB / 405.5 MB, free: 3.406 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.2811, allocations: 8 kB / 405.5 MB, free: 3.398 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002704/0.2814, allocations: 133.7 kB / 405.7 MB, free: 3.262 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009163/0.2823, allocations: 0.627 MB / 406.3 MB, free: 2.586 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000291/0.2826, allocations: 178.6 kB / 406.5 MB, free: 2.402 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001637/0.2828, allocations: 100.8 kB / 406.6 MB, free: 2.301 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.762e-05/0.2828, allocations: 0 / 406.6 MB, free: 2.301 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.506e-05/0.2828, allocations: 38.56 kB / 406.6 MB, free: 2.254 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.072e-06/0.2828, allocations: 0 / 406.6 MB, free: 2.254 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.001869/0.2847, allocations: 1.074 MB / 407.7 MB, free: 1.094 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.403e-05/0.2848, allocations: 59.34 kB / 407.7 MB, free: 1.023 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000162/0.2849, allocations: 180 kB / 407.9 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.15e-05/0.285, allocations: 29.7 kB / 407.9 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.169e-05/0.285, allocations: 144.8 kB / 408.1 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.915e-05/0.2851, allocations: 119 kB / 408.2 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.59e-05/0.2852, allocations: 53.7 kB / 408.2 MB, free: 488 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.2853, allocations: 334.8 kB / 408.6 MB, free: 144 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001387/0.2855, allocations: 67.97 kB / 408.6 MB, free: 76 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000178/0.2857, allocations: 111.6 kB / 408.7 MB, free: 15.96 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003054/0.286, allocations: 201.2 kB / 408.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.173e-06/0.286, allocations: 0 / 408.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004827/0.2865, allocations: 302.2 kB / 409.2 MB, free: 15.45 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.2865, allocations: 4 kB / 409.2 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/0.2865, allocations: 4 kB / 409.2 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001875/0.2867, allocations: 48.77 kB / 409.3 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002442/0.287, allocations: 59.91 kB / 409.3 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001528/0.2885, allocations: 1.74 MB / 411.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001294/0.2887, allocations: 16.05 kB / 411.1 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.662e-05/0.2887, 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.0001416/0.2888, allocations: 137.8 kB / 411.2 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.774e-05/0.2889, allocations: 27.8 kB / 411.3 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.355e-05/0.2889, allocations: 34.64 kB / 411.3 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.289, allocations: 0 / 411.3 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.289, allocations: 4 kB / 411.3 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.289, allocations: 0 / 411.3 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00109/0.2901, allocations: 0.7739 MB / 412.1 MB, free: 12.37 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.105e-06/0.2901, allocations: 8 kB / 412.1 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002661/0.2904, allocations: 60 kB / 412.2 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001204/0.2905, allocations: 36.83 kB / 412.2 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.076e-05/0.2905, allocations: 8 kB / 412.2 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00117/0.2917, allocations: 1.489 MB / 413.7 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.2917, allocations: 0 / 413.7 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006842/0.2924, allocations: 482.7 kB / 414.2 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.672e-05/0.2925, allocations: 97 kB / 414.2 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.732e-05/0.2925, allocations: 8 kB / 414.3 MB, free: 9.996 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001407/0.2927, allocations: 8 kB / 414.3 MB, free: 9.988 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.48e-05/0.2927, allocations: 27.97 kB / 414.3 MB, free: 9.961 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.45e-05/0.2928, allocations: 4 kB / 414.3 MB, free: 9.957 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001087/0.2929, allocations: 139.2 kB / 414.4 MB, free: 9.82 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2929, allocations: 0 / 414.4 MB, free: 9.82 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003859/0.2933, allocations: 68 kB / 414.5 MB, free: 9.754 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.0009787/0.2943, allocations: 1.021 MB / 415.5 MB, free: 8.695 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005969/0.2949, allocations: 339.6 kB / 415.9 MB, free: 8.352 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.2949, allocations: 128 / 415.9 MB, free: 8.352 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003272/0.2952, allocations: 238.5 kB / 416.1 MB, free: 8.105 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004379/0.2957, allocations: 63.42 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.003426/0.2991, allocations: 2.757 MB / 418.9 MB, free: 5.172 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003358/0.2995, allocations: 0.7564 MB / 419.7 MB, free: 4.391 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.553e-05/0.2996, allocations: 26.27 kB / 419.7 MB, free: 4.367 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001181/0.2997, allocations: 71.42 kB / 419.8 MB, free: 4.297 MB / 334.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2997, allocations: 4 kB / 419.8 MB, free: 4.293 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02737/0.3271, allocations: 5.233 MB / 425 MB, free: 15.17 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.575/9.902, allocations: 11.52 kB / 425 MB, free: 15.16 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