Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.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: translateModel(Modelica.Mechanics.Translational.Examples.Oscillator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper1.s_rel|damper1.v_rel|mass1.s|mass1.v",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator") translateModel(Modelica.Mechanics.Translational.Examples.Oscillator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper1.s_rel|damper1.v_rel|mass1.s|mass1.v",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001314/0.001314, allocations: 110.2 kB / 18.25 MB, free: 4.898 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.001165/0.001165, allocations: 195.3 kB / 19.18 MB, free: 3.977 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.393/1.393, allocations: 205.1 MB / 225 MB, free: 12.3 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.001379/0.001379, allocations: 47.92 kB / 281.3 MB, free: 3.172 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09958/0.101, allocations: 46.63 MB / 327.9 MB, free: 4.469 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.00416/0.1052, allocations: 2.393 MB / 330.3 MB, free: 2.051 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001345/0.1066, allocations: 0.6242 MB / 331 MB, free: 1.418 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002334/0.1068, allocations: 4 kB / 331 MB, free: 1.414 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002165/0.1071, allocations: 43.47 kB / 331 MB, free: 1.371 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002483/0.1073, allocations: 67.42 kB / 331.1 MB, free: 1.305 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003009/0.1077, allocations: 63.84 kB / 331.1 MB, free: 1.242 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003599/0.108, allocations: 250.9 kB / 331.4 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002331/0.1083, allocations: 97.34 kB / 331.5 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002261/0.1085, allocations: 95.64 kB / 331.6 MB, free: 0.8086 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002076/0.1087, allocations: 107.5 kB / 331.7 MB, free: 0.7031 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.894e-05/0.1088, allocations: 20 kB / 331.7 MB, free: 0.6836 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.98e-05/0.1088, allocations: 20 kB / 331.7 MB, free: 0.6641 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.009e-05/0.1089, allocations: 51.83 kB / 331.8 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001517/0.1091, allocations: 123.4 kB / 331.9 MB, free: 0.4922 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003275/0.1094, allocations: 247.4 kB / 332.1 MB, free: 256 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.1094, allocations: 0 / 332.1 MB, free: 256 kB / 270.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.1094, allocations: 0 / 332.1 MB, free: 256 kB / 270.1 MB Notification: Performance of Transformations before backend: time 1.821e-05/0.1095, allocations: 0 / 332.1 MB, free: 256 kB / 270.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.001007/0.1105, allocations: 0.5223 MB / 332.7 MB, free: 15.68 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.1105, allocations: 15.89 kB / 332.7 MB, free: 15.66 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.938e-05/0.1106, allocations: 24.66 kB / 332.7 MB, free: 15.64 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002944/0.1109, allocations: 236.5 kB / 332.9 MB, free: 15.37 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.096e-05/0.111, allocations: 12.81 kB / 332.9 MB, free: 15.36 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.066e-05/0.111, allocations: 24.36 kB / 333 MB, free: 15.33 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004203/0.1114, allocations: 217.3 kB / 333.2 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.25e-05/0.1115, allocations: 3.938 kB / 333.2 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.356e-05/0.1115, allocations: 8 kB / 333.2 MB, free: 15.1 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.288e-06/0.1115, allocations: 12 kB / 333.2 MB, free: 15.09 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000335/0.1119, allocations: 139.9 kB / 333.3 MB, free: 14.95 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001357/0.1132, allocations: 0.7986 MB / 334.1 MB, free: 14.08 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004418/0.1137, allocations: 201 kB / 334.3 MB, free: 13.87 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000254/0.1139, allocations: 105.7 kB / 334.4 MB, free: 13.76 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.573e-05/0.114, allocations: 4 kB / 334.4 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.8e-05/0.114, allocations: 34.69 kB / 334.5 MB, free: 13.71 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 1.623e-06/0.114, allocations: 7.938 kB / 334.5 MB, free: 13.7 MB / 286.1 MB Notification: Performance of matching and sorting (n=26): time 0.001732/0.1158, allocations: 0.8559 MB / 335.3 MB, free: 12.76 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.523e-05/0.1159, allocations: 89.11 kB / 335.4 MB, free: 12.65 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001817/0.116, allocations: 174.2 kB / 335.6 MB, free: 12.47 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.62e-05/0.1161, allocations: 29.7 kB / 335.6 MB, free: 12.44 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001222/0.1162, allocations: 144.3 kB / 335.8 MB, free: 12.29 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.261e-05/0.1163, allocations: 90.66 kB / 335.8 MB, free: 12.2 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.721e-05/0.1164, allocations: 49.7 kB / 335.9 MB, free: 12.15 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.1166, allocations: 330.8 kB / 336.2 MB, free: 11.82 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001538/0.1167, allocations: 63.97 kB / 336.3 MB, free: 11.75 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001854/0.1169, allocations: 112.2 kB / 336.4 MB, free: 11.63 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003539/0.1173, allocations: 192.1 kB / 336.6 MB, free: 11.43 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1173, allocations: 0 / 336.6 MB, free: 11.43 MB / 286.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004417/0.1178, allocations: 241.2 kB / 336.8 MB, free: 11.18 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.1178, allocations: 8 kB / 336.8 MB, free: 11.18 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.1178, allocations: 0 / 336.8 MB, free: 11.18 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.963e-05/0.1178, allocations: 4 kB / 336.8 MB, free: 11.17 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002487/0.1181, allocations: 67.89 kB / 336.9 MB, free: 11.11 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.357e-06/0.1181, allocations: 4.094 kB / 336.9 MB, free: 11.1 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001211/0.1182, allocations: 19.84 kB / 336.9 MB, free: 11.08 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.741e-05/0.1183, allocations: 8 kB / 336.9 MB, free: 11.07 MB / 286.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.0001422/0.1184, allocations: 137.7 kB / 337.1 MB, free: 10.93 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.808e-05/0.1185, allocations: 23.73 kB / 337.1 MB, free: 10.91 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.034e-05/0.1185, allocations: 25.88 kB / 337.1 MB, free: 10.88 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.1185, allocations: 4 kB / 337.1 MB, free: 10.88 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.1186, allocations: 0 / 337.1 MB, free: 10.88 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.1186, allocations: 7.984 kB / 337.1 MB, free: 10.87 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008738/0.1195, allocations: 0.5833 MB / 337.7 MB, free: 10.22 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.1195, allocations: 0 / 337.7 MB, free: 10.22 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002661/0.1197, allocations: 60.06 kB / 337.8 MB, free: 10.16 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.1198, allocations: 4 kB / 337.8 MB, free: 10.16 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.99e-05/0.1198, allocations: 7.984 kB / 337.8 MB, free: 10.15 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-06/0.1198, allocations: 0 / 337.8 MB, free: 10.15 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/0.1198, allocations: 11.88 kB / 337.8 MB, free: 10.14 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006879/0.1205, allocations: 481.1 kB / 338.3 MB, free: 9.641 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.91e-05/0.1206, allocations: 108.8 kB / 338.4 MB, free: 9.516 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.663e-05/0.1206, allocations: 8 kB / 338.4 MB, free: 9.508 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001675/0.1208, allocations: 12.03 kB / 338.4 MB, free: 9.496 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.479e-05/0.1209, allocations: 23.86 kB / 338.4 MB, free: 9.473 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.427e-05/0.1209, allocations: 7.984 kB / 338.4 MB, free: 9.465 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001108/0.121, allocations: 140.3 kB / 338.5 MB, free: 9.328 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.121, allocations: 0 / 338.5 MB, free: 9.328 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003464/0.1214, allocations: 48 kB / 338.6 MB, free: 9.281 MB / 286.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.0001621/0.1216, allocations: 103.2 kB / 338.7 MB, free: 9.172 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000461/0.122, allocations: 192 kB / 338.9 MB, free: 8.984 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.122, allocations: 192 / 338.9 MB, free: 8.984 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002026/0.1222, allocations: 98.23 kB / 339 MB, free: 8.891 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000587/0.1228, allocations: 37.88 kB / 339 MB, free: 8.855 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001416/0.1243, allocations: 0.7245 MB / 339.7 MB, free: 8.086 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004021/0.1247, allocations: 0.7479 MB / 340.5 MB, free: 7.312 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.518e-05/0.1248, allocations: 27.42 kB / 340.5 MB, free: 7.285 MB / 286.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1248, allocations: 0 / 340.5 MB, free: 7.285 MB / 286.1 MB Notification: Performance of Templates: time 0.005689/0.1305, allocations: 2.597 MB / 343.1 MB, free: 4.684 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches