Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_3_2_3_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.001583/0.001583, allocations: 114.5 kB / 17.73 MB, free: 5.312 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.001457/0.001458, allocations: 187 kB / 18.67 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.512/1.512, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001659/0.001659, allocations: 55.92 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09477/0.09643, allocations: 46.62 MB / 374.6 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003848/0.1003, allocations: 2.337 MB / 377 MB, free: 2.719 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001074/0.1014, allocations: 0.6278 MB / 377.6 MB, free: 2.082 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001206/0.1016, allocations: 7.938 kB / 377.6 MB, free: 2.074 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001532/0.1017, allocations: 35.64 kB / 377.7 MB, free: 2.039 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001517/0.1019, allocations: 71.34 kB / 377.7 MB, free: 1.969 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000201/0.1021, allocations: 51.94 kB / 377.8 MB, free: 1.918 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003145/0.1024, allocations: 258.8 kB / 378 MB, free: 1.664 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001904/0.1026, allocations: 88.28 kB / 378.1 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001617/0.1028, allocations: 99.64 kB / 378.2 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001576/0.103, allocations: 103.5 kB / 378.3 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.811e-05/0.103, allocations: 20 kB / 378.3 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.997e-05/0.1031, allocations: 16 kB / 378.4 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.068e-05/0.1031, allocations: 55.77 kB / 378.4 MB, free: 1.289 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001239/0.1033, allocations: 119.4 kB / 378.5 MB, free: 1.172 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003283/0.1036, allocations: 247 kB / 378.8 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.1036, allocations: 0 / 378.8 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1036, allocations: 0 / 378.8 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.1036, allocations: 0 / 378.8 MB, free: 0.9297 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.0008058/0.1044, allocations: 0.5105 MB / 379.3 MB, free: 380 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.1045, allocations: 19.91 kB / 379.3 MB, free: 360 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.184e-05/0.1046, allocations: 54.73 kB / 379.3 MB, free: 296 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.166e-05/0.1046, allocations: 28.73 kB / 379.4 MB, free: 268 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1858/0.2905, allocations: 244.7 kB / 379.6 MB, free: 12.94 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.642e-05/0.2905, allocations: 14 kB / 379.6 MB, free: 12.94 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.6e-05/0.2906, allocations: 21.84 kB / 379.6 MB, free: 12.94 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004592/0.2911, allocations: 211.7 kB / 379.9 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.178e-05/0.2911, allocations: 3.875 kB / 379.9 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.098e-05/0.2912, allocations: 12.94 kB / 379.9 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.2912, allocations: 4.938 kB / 379.9 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002542/0.2914, allocations: 129.4 kB / 380 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009909/0.2924, allocations: 0.694 MB / 380.7 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000266/0.2927, allocations: 155.2 kB / 380.8 MB, free: 12.49 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001207/0.2929, allocations: 72.38 kB / 380.9 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.108e-05/0.2929, allocations: 2.75 kB / 380.9 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.923e-05/0.2929, allocations: 35.81 kB / 381 MB, free: 12.45 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.964e-06/0.2929, allocations: 0 / 381 MB, free: 12.45 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001494/0.2944, allocations: 0.8867 MB / 381.8 MB, free: 11.95 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.041e-05/0.2945, allocations: 55.42 kB / 381.9 MB, free: 11.89 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001977/0.2947, allocations: 172.8 kB / 382.1 MB, free: 11.77 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.306e-05/0.2947, allocations: 31.56 kB / 382.1 MB, free: 11.73 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.42e-05/0.2948, allocations: 148.4 kB / 382.2 MB, free: 11.61 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.594e-05/0.2948, allocations: 92.88 kB / 382.3 MB, free: 11.54 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.152e-05/0.2949, allocations: 46.66 kB / 382.4 MB, free: 11.5 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.961e-05/0.295, allocations: 336.5 kB / 382.7 MB, free: 11.18 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001432/0.2951, allocations: 53.78 kB / 382.8 MB, free: 11.16 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001692/0.2953, allocations: 97.23 kB / 382.9 MB, free: 11.1 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003168/0.2956, allocations: 168.4 kB / 383 MB, free: 11 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.183e-06/0.2956, allocations: 0.8125 kB / 383 MB, free: 11 MB / 318.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004601/0.2961, allocations: 250.4 kB / 383.3 MB, free: 10.89 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.2961, allocations: 5.344 kB / 383.3 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.2962, allocations: 1.375 kB / 383.3 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001621/0.2963, allocations: 40.2 kB / 383.3 MB, free: 10.87 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002154/0.2965, allocations: 54.3 kB / 383.4 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009327/0.2975, allocations: 1.488 MB / 384.9 MB, free: 9.406 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001086/0.2976, allocations: 9.188 kB / 384.9 MB, free: 9.402 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.658e-05/0.2976, allocations: 6.688 kB / 384.9 MB, free: 9.402 MB / 318.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 9.502e-05/0.2977, allocations: 140.6 kB / 385 MB, free: 9.266 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.91e-05/0.2978, allocations: 21.08 kB / 385 MB, free: 9.254 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.457e-05/0.2978, allocations: 25.2 kB / 385 MB, free: 9.238 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.2978, allocations: 2.219 kB / 385.1 MB, free: 9.238 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.2979, allocations: 1.062 kB / 385.1 MB, free: 9.238 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.2979, allocations: 2.906 kB / 385.1 MB, free: 9.238 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007942/0.2987, allocations: 0.6481 MB / 385.7 MB, free: 8.762 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.2987, allocations: 2.766 kB / 385.7 MB, free: 8.762 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002056/0.2989, allocations: 48.34 kB / 385.8 MB, free: 8.754 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001186/0.299, allocations: 36.28 kB / 385.8 MB, free: 8.742 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.657e-05/0.299, allocations: 5.188 kB / 385.8 MB, free: 8.738 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007912/0.2998, allocations: 1.487 MB / 387.3 MB, free: 7.281 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.2999, allocations: 1.156 kB / 387.3 MB, free: 7.281 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005013/0.3004, allocations: 406.2 kB / 387.7 MB, free: 7.023 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.353e-05/0.3004, allocations: 103.5 kB / 387.8 MB, free: 6.914 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.335e-05/0.3004, allocations: 2.578 kB / 387.8 MB, free: 6.914 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001215/0.3006, allocations: 10.09 kB / 387.8 MB, free: 6.91 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.931e-05/0.3006, allocations: 21.92 kB / 387.8 MB, free: 6.902 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.206e-05/0.3006, allocations: 6.906 kB / 387.8 MB, free: 6.902 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.576e-05/0.3007, allocations: 132.8 kB / 387.9 MB, free: 6.809 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3007, allocations: 4 kB / 388 MB, free: 6.805 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003376/0.3011, allocations: 57.97 kB / 388 MB, free: 6.797 MB / 318.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.0006699/0.3018, allocations: 0.9367 MB / 388.9 MB, free: 6.008 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005362/0.3023, allocations: 301.3 kB / 389.2 MB, free: 5.832 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3023, allocations: 0 / 389.2 MB, free: 5.832 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002827/0.3026, allocations: 217.2 kB / 389.5 MB, free: 5.688 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004175/0.303, allocations: 38.27 kB / 389.5 MB, free: 5.676 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002851/0.3059, allocations: 2.532 MB / 392 MB, free: 3.812 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002283/0.3061, allocations: 0.7515 MB / 392.8 MB, free: 3.105 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.761e-05/0.3062, allocations: 18.06 kB / 392.8 MB, free: 3.105 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.596e-05/0.3063, allocations: 70.59 kB / 392.9 MB, free: 3.055 MB / 318.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3064, allocations: 0 / 392.9 MB, free: 3.055 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03383/0.3402, allocations: 4.743 MB / 397.6 MB, free: 2.223 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.01/10.35, allocations: 6.109 kB / 397.6 MB, free: 2.219 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches