Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.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.Translational.Examples.Oscillator,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001485/0.001485, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001754/0.001754, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.52/1.52, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 59.44 kB / 307 MB, free: 0.543 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1056, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.004663/0.1103, allocations: 2.437 MB / 360 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001554/0.112, allocations: 0.6466 MB / 360.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002453/0.1123, allocations: 11.94 kB / 360.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002102/0.1125, allocations: 39.64 kB / 360.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000283/0.1128, allocations: 63.34 kB / 360.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004309/0.1133, allocations: 79.84 kB / 360.9 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003669/0.1136, allocations: 258.8 kB / 361.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000283/0.1139, allocations: 101.3 kB / 361.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002391/0.1142, allocations: 99.7 kB / 361.3 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001785/0.1144, allocations: 107.5 kB / 361.4 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.37e-05/0.1144, allocations: 24 kB / 361.4 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.527e-05/0.1145, allocations: 20 kB / 361.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.048e-05/0.1146, allocations: 51.83 kB / 361.5 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001811/0.1148, allocations: 123.3 kB / 361.6 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00031/0.1151, allocations: 255.3 kB / 361.9 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1151, allocations: 4 kB / 361.9 MB, free: 9.688 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1151, allocations: 0 / 361.9 MB, free: 9.688 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.436e-06/0.1151, allocations: 4 kB / 361.9 MB, free: 9.684 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0009454/0.1161, allocations: 0.5224 MB / 362.4 MB, free: 9.109 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/0.1161, allocations: 8.031 kB / 362.4 MB, free: 9.102 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.576e-05/0.1162, allocations: 58.73 kB / 362.5 MB, free: 9.035 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000274/0.1165, allocations: 48.62 kB / 362.5 MB, free: 8.988 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002826/0.1168, allocations: 235.9 kB / 362.7 MB, free: 8.719 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.849e-05/0.1168, allocations: 20.75 kB / 362.8 MB, free: 8.699 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.846e-05/0.1169, allocations: 24.28 kB / 362.8 MB, free: 8.676 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003994/0.1173, allocations: 217.1 kB / 363 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.668e-05/0.1173, allocations: 4 kB / 363 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.007e-05/0.1173, allocations: 4 kB / 363 MB, free: 8.445 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.1173, allocations: 8 kB / 363 MB, free: 8.438 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003359/0.1177, allocations: 143.9 kB / 363.2 MB, free: 8.297 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001267/0.119, allocations: 0.7948 MB / 364 MB, free: 7.434 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000423/0.1194, allocations: 197 kB / 364.1 MB, free: 7.223 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002918/0.1197, allocations: 105.7 kB / 364.2 MB, free: 7.113 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.377e-05/0.1198, allocations: 352 / 364.2 MB, free: 7.113 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.892e-05/0.1198, allocations: 42.48 kB / 364.3 MB, free: 7.062 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.383e-06/0.1198, allocations: 0 / 364.3 MB, free: 7.062 MB / 302.1 MB Notification: Performance of matching and sorting (n=26): time 0.001666/0.1215, allocations: 0.8696 MB / 365.2 MB, free: 6.105 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.598e-05/0.1215, allocations: 77.11 kB / 365.2 MB, free: 6.012 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002187/0.1218, allocations: 194.4 kB / 365.4 MB, free: 5.809 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.391e-05/0.1218, allocations: 29.7 kB / 365.5 MB, free: 5.773 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.842e-05/0.1219, allocations: 140.4 kB / 365.6 MB, free: 5.633 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.763e-05/0.122, allocations: 94.64 kB / 365.7 MB, free: 5.539 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.455e-05/0.122, allocations: 45.7 kB / 365.7 MB, free: 5.488 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.1221, allocations: 338.8 kB / 366.1 MB, free: 5.148 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001538/0.1223, allocations: 63.97 kB / 366.1 MB, free: 5.086 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001866/0.1225, allocations: 116.2 kB / 366.2 MB, free: 4.957 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003509/0.1229, allocations: 178.6 kB / 366.4 MB, free: 4.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.1229, allocations: 11.92 kB / 366.4 MB, free: 4.758 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004327/0.1233, allocations: 241.2 kB / 366.7 MB, free: 4.516 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.1234, allocations: 4 kB / 366.7 MB, free: 4.512 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.1234, allocations: 0 / 366.7 MB, free: 4.512 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.038e-05/0.1234, allocations: 4 kB / 366.7 MB, free: 4.508 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000277/0.1237, allocations: 63.91 kB / 366.7 MB, free: 4.445 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.1237, allocations: 7.984 kB / 366.7 MB, free: 4.438 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001157/0.1239, allocations: 19.97 kB / 366.8 MB, free: 4.418 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.686e-05/0.1239, allocations: 8 kB / 366.8 MB, free: 4.41 MB / 302.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 (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000117/0.124, allocations: 142.8 kB / 366.9 MB, free: 4.262 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.374e-05/0.1241, allocations: 23.72 kB / 366.9 MB, free: 4.238 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.238e-05/0.1241, allocations: 29.86 kB / 367 MB, free: 4.207 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.1241, allocations: 4 kB / 367 MB, free: 4.203 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.1242, allocations: 4 kB / 367 MB, free: 4.199 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.1242, allocations: 3.984 kB / 367 MB, free: 4.195 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008382/0.125, allocations: 0.5903 MB / 367.6 MB, free: 3.539 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.125, allocations: 0 / 367.6 MB, free: 3.539 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000299/0.1253, allocations: 55.91 kB / 367.6 MB, free: 3.484 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.756e-06/0.1254, allocations: 4.094 kB / 367.6 MB, free: 3.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.536e-05/0.1254, allocations: 11.98 kB / 367.6 MB, free: 3.469 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.841e-06/0.1254, allocations: 7.938 kB / 367.6 MB, free: 3.461 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.1254, allocations: 0 / 367.6 MB, free: 3.461 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000643/0.1261, allocations: 493.7 kB / 368.1 MB, free: 2.953 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.619e-05/0.1261, allocations: 100.8 kB / 368.2 MB, free: 2.836 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.508e-05/0.1262, allocations: 4 kB / 368.2 MB, free: 2.832 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001804/0.1264, allocations: 15.91 kB / 368.2 MB, free: 2.816 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.629e-05/0.1264, allocations: 19.98 kB / 368.3 MB, free: 2.797 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.168e-05/0.1264, allocations: 4 kB / 368.3 MB, free: 2.793 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001004/0.1266, allocations: 140.9 kB / 368.4 MB, free: 2.656 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1266, allocations: 4 kB / 368.4 MB, free: 2.652 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003332/0.1269, allocations: 48 kB / 368.4 MB, free: 2.605 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (damper1.s_rel,damper1.v_rel,mass1.s,mass1.v) * 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 (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008936/0.1278, allocations: 1.034 MB / 369.5 MB, free: 1.535 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004264/0.1282, allocations: 186.2 kB / 369.7 MB, free: 1.355 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1282, allocations: 0 / 369.7 MB, free: 1.355 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001686/0.1284, allocations: 102.7 kB / 369.8 MB, free: 1.258 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005562/0.129, allocations: 40.67 kB / 369.8 MB, free: 1.219 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1709/0.2999, allocations: 2.642 MB / 372.4 MB, free: 18.76 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000232/0.3002, allocations: 0.7461 MB / 373.2 MB, free: 18.07 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001295/0.3003, allocations: 25.31 kB / 373.2 MB, free: 18.07 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001564/0.3005, allocations: 69.77 kB / 373.3 MB, free: 18.06 MB / 302.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3005, allocations: 0 / 373.3 MB, free: 18.06 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02557/0.326, allocations: 4.364 MB / 377.6 MB, free: 17.64 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.28/8.606, allocations: 12.45 kB / 377.7 MB, free: 17.63 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator_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_Translational_Examples_Oscillator.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches