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.001553/0.001553, allocations: 114.5 kB / 17.73 MB, free: 5.336 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.001546/0.001546, allocations: 187 kB / 18.67 MB, free: 4.402 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.432/1.432, 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.001644/0.001644, allocations: 51.92 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09394/0.09559, allocations: 46.62 MB / 374.6 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003757/0.09938, allocations: 2.345 MB / 377 MB, free: 2.719 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001107/0.1005, allocations: 0.6239 MB / 377.6 MB, free: 2.086 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001297/0.1007, allocations: 4 kB / 377.6 MB, free: 2.082 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001548/0.1008, allocations: 43.58 kB / 377.7 MB, free: 2.039 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001603/0.101, allocations: 75.33 kB / 377.7 MB, free: 1.965 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002195/0.1012, allocations: 59.86 kB / 377.8 MB, free: 1.906 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003292/0.1016, allocations: 262.8 kB / 378 MB, free: 1.648 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002171/0.1018, allocations: 110.7 kB / 378.2 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001781/0.102, allocations: 107.5 kB / 378.3 MB, free: 1.434 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001786/0.1022, allocations: 111.5 kB / 378.4 MB, free: 1.324 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.821e-05/0.1022, allocations: 20 kB / 378.4 MB, free: 1.305 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.428e-05/0.1023, allocations: 20 kB / 378.4 MB, free: 1.285 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.054e-05/0.1023, allocations: 47.84 kB / 378.5 MB, free: 1.238 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001304/0.1025, allocations: 119.4 kB / 378.6 MB, free: 1.121 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003615/0.1028, allocations: 274.8 kB / 378.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.1028, allocations: 0 / 378.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1029, allocations: 0 / 378.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.125e-05/0.1029, allocations: 4 kB / 378.8 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.0008066/0.1037, allocations: 0.526 MB / 379.4 MB, free: 280 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/0.1037, allocations: 11.89 kB / 379.4 MB, free: 268 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.161e-05/0.1038, allocations: 54.73 kB / 379.4 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.63e-05/0.1039, allocations: 32.75 kB / 379.5 MB, free: 172 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1637/0.2676, allocations: 242.3 kB / 379.7 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.521e-05/0.2677, allocations: 18.81 kB / 379.7 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.443e-05/0.2677, allocations: 24.12 kB / 379.7 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000397/0.2681, allocations: 193.8 kB / 379.9 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.91e-05/0.2682, allocations: 1.375 kB / 379.9 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.222e-05/0.2682, allocations: 11.88 kB / 379.9 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/0.2682, allocations: 5.5 kB / 380 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002648/0.2685, allocations: 142.1 kB / 380.1 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009004/0.2694, allocations: 0.6281 MB / 380.7 MB, free: 12.59 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002954/0.2697, allocations: 181 kB / 380.9 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001598/0.2699, allocations: 99.83 kB / 381 MB, free: 12.56 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.476e-05/0.2699, allocations: 1.375 kB / 381 MB, free: 12.56 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.107e-05/0.2699, allocations: 36.36 kB / 381 MB, free: 12.52 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.054e-06/0.2699, allocations: 0.75 kB / 381 MB, free: 12.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.00186/0.2718, allocations: 1.074 MB / 382.1 MB, free: 11.92 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.857e-05/0.2718, allocations: 59.42 kB / 382.2 MB, free: 11.86 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001915/0.272, allocations: 176.3 kB / 382.3 MB, free: 11.73 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.665e-05/0.2721, allocations: 30.92 kB / 382.4 MB, free: 11.7 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.027e-05/0.2721, allocations: 139.8 kB / 382.5 MB, free: 11.58 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.249e-05/0.2722, allocations: 125.7 kB / 382.6 MB, free: 11.48 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.048e-05/0.2723, allocations: 54.05 kB / 382.7 MB, free: 11.45 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.045e-05/0.2724, allocations: 339.7 kB / 383 MB, free: 11.12 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001551/0.2725, allocations: 70.8 kB / 383.1 MB, free: 11.1 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001553/0.2727, allocations: 110.6 kB / 383.2 MB, free: 11.05 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002823/0.273, allocations: 190 kB / 383.4 MB, free: 10.95 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.273, allocations: 0.6562 kB / 383.4 MB, free: 10.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004661/0.2735, allocations: 301 kB / 383.7 MB, free: 10.81 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/0.2735, allocations: 10.03 kB / 383.7 MB, free: 10.81 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-06/0.2735, allocations: 0 / 383.7 MB, free: 10.81 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001729/0.2737, allocations: 45.28 kB / 383.7 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002357/0.2739, allocations: 59.14 kB / 383.8 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001079/0.275, allocations: 1.734 MB / 385.5 MB, free: 9.129 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001183/0.2752, allocations: 10.31 kB / 385.5 MB, free: 9.125 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.719e-05/0.2752, allocations: 12.52 kB / 385.5 MB, free: 9.121 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 9.43e-05/0.2753, allocations: 136 kB / 385.7 MB, free: 8.988 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.415e-05/0.2753, allocations: 27.2 kB / 385.7 MB, free: 8.973 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.008e-05/0.2754, allocations: 32.06 kB / 385.7 MB, free: 8.945 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.2754, allocations: 7.375 kB / 385.7 MB, free: 8.941 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.2754, allocations: 1.188 kB / 385.7 MB, free: 8.941 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.2754, allocations: 6.031 kB / 385.7 MB, free: 8.941 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009377/0.2764, allocations: 0.7722 MB / 386.5 MB, free: 8.406 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.2764, allocations: 1.156 kB / 386.5 MB, free: 8.406 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002495/0.2766, allocations: 61.2 kB / 386.6 MB, free: 8.398 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001132/0.2768, allocations: 36.06 kB / 386.6 MB, free: 8.383 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.737e-05/0.2768, allocations: 8.422 kB / 386.6 MB, free: 8.379 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007876/0.2776, allocations: 1.485 MB / 388.1 MB, free: 6.926 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.2776, allocations: 1.75 kB / 388.1 MB, free: 6.926 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006168/0.2782, allocations: 489.5 kB / 388.6 MB, free: 6.625 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.991e-05/0.2783, allocations: 96.53 kB / 388.7 MB, free: 6.52 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.092e-05/0.2783, allocations: 16.41 kB / 388.7 MB, free: 6.508 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001298/0.2784, allocations: 7.469 kB / 388.7 MB, free: 6.504 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.019e-05/0.2785, allocations: 26.28 kB / 388.7 MB, free: 6.496 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.376e-05/0.2785, allocations: 7.797 kB / 388.7 MB, free: 6.496 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.468e-05/0.2786, allocations: 131 kB / 388.9 MB, free: 6.406 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2786, allocations: 3.281 kB / 388.9 MB, free: 6.406 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000388/0.279, allocations: 65.06 kB / 388.9 MB, free: 6.398 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.0007902/0.2798, allocations: 1.033 MB / 390 MB, free: 5.555 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005654/0.2804, allocations: 331.6 kB / 390.3 MB, free: 5.375 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2804, allocations: 0 / 390.3 MB, free: 5.375 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002996/0.2807, allocations: 248.4 kB / 390.5 MB, free: 5.219 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004242/0.2812, allocations: 49.06 kB / 390.6 MB, free: 5.199 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002934/0.2841, allocations: 2.745 MB / 393.3 MB, free: 3.254 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001861/0.2843, allocations: 0.7553 MB / 394.1 MB, free: 2.555 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.618e-05/0.2844, allocations: 25.38 kB / 394.1 MB, free: 2.551 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001004/0.2845, allocations: 75.73 kB / 394.2 MB, free: 2.496 MB / 318.1 MB Notification: Performance of SimCode: time 3.5e-07/0.2845, allocations: 0 / 394.2 MB, free: 2.496 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03254/0.3171, allocations: 5.257 MB / 399.4 MB, free: 1.641 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.25/10.57, allocations: 7.938 kB / 399.4 MB, free: 1.633 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