Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001377/0.001377, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00172/0.00172, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 64.86 kB / 307 MB, free: 0.5391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09396/0.0952, allocations: 50.54 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.004249/0.0995, allocations: 2.352 MB / 359.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001373/0.1009, allocations: 0.6466 MB / 360.6 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002051/0.1011, allocations: 7.938 kB / 360.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001804/0.1013, allocations: 35.59 kB / 360.6 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002087/0.1016, allocations: 75.33 kB / 360.7 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002891/0.1019, allocations: 71.84 kB / 360.8 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003413/0.1022, allocations: 270.7 kB / 361 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002463/0.1025, allocations: 106.7 kB / 361.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000255/0.1027, allocations: 119.6 kB / 361.3 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002225/0.103, allocations: 111.5 kB / 361.4 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.895e-05/0.103, allocations: 20 kB / 361.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.235e-05/0.1031, allocations: 28 kB / 361.4 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.462e-05/0.1032, allocations: 47.78 kB / 361.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001447/0.1033, allocations: 127.4 kB / 361.6 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003311/0.1037, allocations: 263.3 kB / 361.8 MB, free: 9.723 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.1037, allocations: 4 kB / 361.8 MB, free: 9.719 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1037, allocations: 0 / 361.8 MB, free: 9.719 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.889e-06/0.1037, allocations: 0 / 361.8 MB, free: 9.719 MB / 302.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.0008155/0.1045, allocations: 0.5146 MB / 362.4 MB, free: 9.152 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.1046, allocations: 15.97 kB / 362.4 MB, free: 9.137 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.323e-05/0.1046, allocations: 58.73 kB / 362.4 MB, free: 9.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001703/0.1048, allocations: 40.64 kB / 362.5 MB, free: 9.031 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002936/0.1051, allocations: 246.2 kB / 362.7 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.778e-05/0.1051, allocations: 12.81 kB / 362.7 MB, free: 8.738 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.404e-05/0.1052, allocations: 20.38 kB / 362.7 MB, free: 8.719 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003443/0.1056, allocations: 195.4 kB / 362.9 MB, free: 8.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.993e-05/0.1056, allocations: 7.906 kB / 362.9 MB, free: 8.512 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.418e-05/0.1056, allocations: 11.94 kB / 363 MB, free: 8.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.938e-06/0.1056, allocations: 15.94 kB / 363 MB, free: 8.484 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002685/0.1059, allocations: 141.6 kB / 363.1 MB, free: 8.348 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009478/0.1069, allocations: 0.6307 MB / 363.7 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002926/0.1072, allocations: 178.5 kB / 363.9 MB, free: 7.484 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001633/0.1073, allocations: 100.9 kB / 364 MB, free: 7.383 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.187e-05/0.1074, allocations: 0 / 364 MB, free: 7.383 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.088e-05/0.1074, allocations: 46.56 kB / 364.1 MB, free: 7.328 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.433e-06/0.1074, allocations: 0 / 364.1 MB, free: 7.328 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.001883/0.1093, allocations: 1.063 MB / 365.1 MB, free: 6.176 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.984e-05/0.1094, allocations: 63.34 kB / 365.2 MB, free: 6.102 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001679/0.1095, allocations: 182.2 kB / 365.4 MB, free: 5.914 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.425e-05/0.1096, allocations: 29.7 kB / 365.4 MB, free: 5.879 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.799e-05/0.1097, allocations: 148.6 kB / 365.5 MB, free: 5.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.905e-05/0.1097, allocations: 114.3 kB / 365.6 MB, free: 5.617 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.901e-05/0.1098, allocations: 53.69 kB / 365.7 MB, free: 5.559 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.11, allocations: 334.8 kB / 366 MB, free: 5.223 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001411/0.1101, allocations: 71.72 kB / 366.1 MB, free: 5.152 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001582/0.1103, allocations: 106.8 kB / 366.2 MB, free: 5.039 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003081/0.1106, allocations: 193 kB / 366.4 MB, free: 4.844 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.1106, allocations: 0 / 366.4 MB, free: 4.844 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005041/0.1111, allocations: 287.2 kB / 366.7 MB, free: 4.555 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.1111, allocations: 4 kB / 366.7 MB, free: 4.551 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.1111, allocations: 4 kB / 366.7 MB, free: 4.547 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001714/0.1113, allocations: 44.77 kB / 366.7 MB, free: 4.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002457/0.1116, allocations: 60.03 kB / 366.8 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00148/0.1131, allocations: 1.744 MB / 368.5 MB, free: 2.555 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001248/0.1132, allocations: 8 kB / 368.5 MB, free: 2.547 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.156e-05/0.1132, allocations: 7.984 kB / 368.5 MB, free: 2.539 MB / 302.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.0001282/0.1134, allocations: 145.8 kB / 368.7 MB, free: 2.387 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.95e-05/0.1134, allocations: 31.66 kB / 368.7 MB, free: 2.355 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.423e-05/0.1135, allocations: 26.66 kB / 368.7 MB, free: 2.332 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.598e-06/0.1135, allocations: 4 kB / 368.7 MB, free: 2.328 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.1135, allocations: 3.938 kB / 368.7 MB, free: 2.324 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.1135, allocations: 3.984 kB / 368.7 MB, free: 2.32 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001078/0.1146, allocations: 0.7974 MB / 369.5 MB, free: 1.445 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.1146, allocations: 0 / 369.5 MB, free: 1.445 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002817/0.1149, allocations: 55.97 kB / 369.6 MB, free: 1.391 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000131/0.115, allocations: 44.86 kB / 369.6 MB, free: 1.344 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.934e-05/0.1151, allocations: 4 kB / 369.6 MB, free: 1.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1463/0.2614, allocations: 1.476 MB / 371.1 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.2615, allocations: 5.031 kB / 371.1 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007657/0.2622, allocations: 484 kB / 371.6 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.186e-05/0.2623, allocations: 91.75 kB / 371.7 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.461e-05/0.2624, allocations: 6.672 kB / 371.7 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001666/0.2625, allocations: 8.656 kB / 371.7 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.591e-05/0.2626, allocations: 26.19 kB / 371.7 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.261e-05/0.2626, allocations: 10.45 kB / 371.7 MB, free: 18.86 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001152/0.2628, allocations: 136.5 kB / 371.9 MB, free: 18.79 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.2628, allocations: 0 / 371.9 MB, free: 18.79 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004193/0.2632, allocations: 67.44 kB / 371.9 MB, free: 18.79 MB / 302.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.0008766/0.2641, allocations: 1.022 MB / 373 MB, free: 18.11 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006975/0.2648, allocations: 353.4 kB / 373.3 MB, free: 18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.2648, allocations: 3.344 kB / 373.3 MB, free: 18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003324/0.2651, allocations: 243.5 kB / 373.5 MB, free: 17.88 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004671/0.2656, allocations: 42.91 kB / 373.6 MB, free: 17.88 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003087/0.2687, allocations: 2.765 MB / 376.4 MB, free: 16.26 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002012/0.2689, allocations: 0.757 MB / 377.1 MB, free: 15.56 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.625e-05/0.269, allocations: 21.25 kB / 377.1 MB, free: 15.56 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001026/0.2692, allocations: 77.02 kB / 377.2 MB, free: 15.5 MB / 302.1 MB Notification: Performance of SimCode: time 1.142e-06/0.2692, allocations: 0 / 377.2 MB, free: 15.5 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02816/0.2973, allocations: 5.15 MB / 382.4 MB, free: 14.86 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.39/9.687, allocations: 12.48 kB / 382.4 MB, free: 14.86 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches