Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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.First,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_3_2_3_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.001163/0.001163, allocations: 112.4 kB / 17.73 MB, free: 5.355 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.001162/0.001162, allocations: 183.1 kB / 18.66 MB, free: 4.434 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.336/1.336, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001434/0.001435, allocations: 51.92 kB / 328 MB, free: 3.824 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09707/0.09852, allocations: 46.63 MB / 374.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.004028/0.1026, allocations: 2.341 MB / 377 MB, free: 2.73 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001271/0.1039, allocations: 0.6239 MB / 377.6 MB, free: 2.098 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002427/0.1042, allocations: 8 kB / 377.6 MB, free: 2.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002118/0.1045, allocations: 39.58 kB / 377.7 MB, free: 2.051 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002712/0.1047, allocations: 79.33 kB / 377.7 MB, free: 1.973 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002636/0.105, allocations: 55.86 kB / 377.8 MB, free: 1.918 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000402/0.1054, allocations: 266.8 kB / 378.1 MB, free: 1.656 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002346/0.1057, allocations: 106.7 kB / 378.2 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002192/0.1059, allocations: 111.5 kB / 378.3 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001874/0.1061, allocations: 115.5 kB / 378.4 MB, free: 1.328 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.117e-05/0.1062, allocations: 20 kB / 378.4 MB, free: 1.309 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.503e-05/0.1062, allocations: 20 kB / 378.4 MB, free: 1.289 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.251e-05/0.1063, allocations: 47.84 kB / 378.5 MB, free: 1.242 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001305/0.1064, allocations: 123.4 kB / 378.6 MB, free: 1.121 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003542/0.1068, allocations: 270.8 kB / 378.8 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.1068, allocations: 0 / 378.8 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1068, allocations: 7.938 kB / 378.9 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.769e-06/0.1068, allocations: 0 / 378.9 MB, free: 0.8477 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.0008469/0.1077, allocations: 0.5221 MB / 379.4 MB, free: 284 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.1077, allocations: 15.89 kB / 379.4 MB, free: 268 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.647e-05/0.1078, allocations: 54.73 kB / 379.4 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.144e-05/0.1079, allocations: 28.75 kB / 379.5 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1836/0.2915, allocations: 243.3 kB / 379.7 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.565e-05/0.2915, allocations: 20.16 kB / 379.7 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.131e-05/0.2916, allocations: 24.78 kB / 379.8 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003996/0.292, allocations: 192.7 kB / 379.9 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.966e-05/0.292, allocations: 2.734 kB / 379.9 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.135e-05/0.2921, allocations: 7.688 kB / 380 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.2921, allocations: 5.5 kB / 380 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002752/0.2924, allocations: 147.8 kB / 380.1 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009411/0.2933, allocations: 0.6206 MB / 380.7 MB, free: 12.59 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002962/0.2936, allocations: 178.1 kB / 380.9 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001529/0.2938, allocations: 100.7 kB / 381 MB, free: 12.56 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.371e-05/0.2938, allocations: 3.828 kB / 381 MB, free: 12.56 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.04e-05/0.2938, allocations: 35.31 kB / 381 MB, free: 12.52 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.633e-06/0.2939, allocations: 3.094 kB / 381 MB, free: 12.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.001841/0.2957, allocations: 1.074 MB / 382.1 MB, free: 11.93 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.794e-05/0.2958, allocations: 59.7 kB / 382.2 MB, free: 11.86 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001959/0.296, allocations: 180.2 kB / 382.3 MB, free: 11.74 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/0.296, allocations: 31.92 kB / 382.4 MB, free: 11.7 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.981e-05/0.2961, allocations: 138.3 kB / 382.5 MB, free: 11.59 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.255e-05/0.2961, allocations: 120.4 kB / 382.6 MB, free: 11.49 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.319e-05/0.2962, allocations: 53.92 kB / 382.7 MB, free: 11.46 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.339e-05/0.2963, allocations: 340.3 kB / 383 MB, free: 11.13 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001671/0.2965, allocations: 66.67 kB / 383.1 MB, free: 11.11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001673/0.2967, allocations: 110.4 kB / 383.2 MB, free: 11.06 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002806/0.2969, allocations: 190.1 kB / 383.4 MB, free: 10.96 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.297, allocations: 1.062 kB / 383.4 MB, free: 10.96 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004762/0.2974, allocations: 300.5 kB / 383.7 MB, free: 10.82 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.2975, allocations: 9.625 kB / 383.7 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.2975, allocations: 0.5625 kB / 383.7 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001754/0.2977, allocations: 45.39 kB / 383.7 MB, free: 10.8 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002461/0.2979, allocations: 59.33 kB / 383.8 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00116/0.2991, allocations: 1.74 MB / 385.5 MB, free: 9.141 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001213/0.2992, allocations: 11.7 kB / 385.5 MB, free: 9.137 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.835e-05/0.2992, allocations: 10.38 kB / 385.5 MB, free: 9.133 MB / 318.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.0001047/0.2994, allocations: 140.9 kB / 385.7 MB, free: 8.996 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.51e-05/0.2994, allocations: 24.11 kB / 385.7 MB, free: 8.984 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.987e-05/0.2995, allocations: 31.88 kB / 385.7 MB, free: 8.957 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.2995, allocations: 9.047 kB / 385.7 MB, free: 8.953 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.197e-06/0.2995, allocations: 1.094 kB / 385.7 MB, free: 8.953 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.2995, allocations: 6.031 kB / 385.8 MB, free: 8.953 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009638/0.3005, allocations: 0.7705 MB / 386.5 MB, free: 8.418 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.3005, allocations: 0 / 386.5 MB, free: 8.418 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002581/0.3008, allocations: 62.16 kB / 386.6 MB, free: 8.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001138/0.3009, allocations: 35.56 kB / 386.6 MB, free: 8.395 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.632e-05/0.3009, allocations: 7.828 kB / 386.6 MB, free: 8.391 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008222/0.3017, allocations: 1.483 MB / 388.1 MB, free: 6.938 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.3017, allocations: 5.844 kB / 388.1 MB, free: 6.934 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005981/0.3023, allocations: 490.9 kB / 388.6 MB, free: 6.633 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.361e-05/0.3024, allocations: 93.89 kB / 388.7 MB, free: 6.531 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.873e-05/0.3024, allocations: 15.16 kB / 388.7 MB, free: 6.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001346/0.3026, allocations: 9.359 kB / 388.7 MB, free: 6.516 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.407e-05/0.3026, allocations: 22.22 kB / 388.7 MB, free: 6.512 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.428e-05/0.3027, allocations: 6.469 kB / 388.7 MB, free: 6.512 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.57e-05/0.3028, allocations: 134.8 kB / 388.9 MB, free: 6.422 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3028, allocations: 0 / 388.9 MB, free: 6.422 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000372/0.3032, allocations: 68.81 kB / 388.9 MB, free: 6.41 MB / 318.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.0007865/0.3039, allocations: 1.027 MB / 390 MB, free: 5.574 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006087/0.3046, allocations: 335.3 kB / 390.3 MB, free: 5.391 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.3046, allocations: 0 / 390.3 MB, free: 5.391 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003167/0.3049, allocations: 248.1 kB / 390.5 MB, free: 5.234 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000454/0.3054, allocations: 51.83 kB / 390.6 MB, free: 5.215 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003188/0.3086, allocations: 2.744 MB / 393.3 MB, free: 3.273 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002044/0.3088, allocations: 0.756 MB / 394.1 MB, free: 2.574 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001028/0.3089, allocations: 24.41 kB / 394.1 MB, free: 2.57 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001035/0.309, allocations: 76.97 kB / 394.2 MB, free: 2.516 MB / 318.1 MB Notification: Performance of SimCode: time 5.01e-07/0.309, allocations: 0 / 394.2 MB, free: 2.516 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03082/0.3398, allocations: 5.249 MB / 399.4 MB, free: 1.664 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.645/9.985, allocations: 5.281 kB / 399.4 MB, free: 1.66 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches