Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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: translateModel(Modelica.Mechanics.Rotational.Examples.First,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First") translateModel(Modelica.Mechanics.Rotational.Examples.First,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001569/0.001569, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001628/0.001628, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.43/1.43, allocations: 227.7 MB / 247.7 MB, free: 10.31 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001911/0.001912, allocations: 64.98 kB / 307.9 MB, free: 496 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0993/0.1012, allocations: 50.53 MB / 358.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003772/0.105, allocations: 2.362 MB / 360.8 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001175/0.1062, allocations: 0.6544 MB / 361.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000123/0.1064, allocations: 4 kB / 361.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001435/0.1065, allocations: 35.59 kB / 361.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001635/0.1067, allocations: 75.33 kB / 361.6 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002499/0.107, allocations: 67.84 kB / 361.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003077/0.1073, allocations: 278.7 kB / 361.9 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002337/0.1075, allocations: 102.7 kB / 362 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002058/0.1077, allocations: 107.6 kB / 362.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001655/0.1079, allocations: 119.5 kB / 362.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.753e-05/0.108, allocations: 20 kB / 362.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.623e-05/0.108, allocations: 24 kB / 362.3 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.701e-05/0.1081, allocations: 51.77 kB / 362.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001345/0.1082, allocations: 127.4 kB / 362.4 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003055/0.1085, allocations: 267.2 kB / 362.7 MB, free: 9.633 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1086, allocations: 0 / 362.7 MB, free: 9.633 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1086, allocations: 0 / 362.7 MB, free: 9.633 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.112e-06/0.1086, allocations: 0 / 362.7 MB, free: 9.633 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.0007765/0.1094, allocations: 0.5262 MB / 363.2 MB, free: 9.055 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.1094, allocations: 12.02 kB / 363.2 MB, free: 9.043 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001736/0.1096, allocations: 36.66 kB / 363.3 MB, free: 9.008 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002944/0.1099, allocations: 246.2 kB / 363.5 MB, free: 8.727 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.1099, allocations: 12.81 kB / 363.5 MB, free: 8.715 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.549e-05/0.11, allocations: 24.38 kB / 363.5 MB, free: 8.691 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000374/0.1104, allocations: 199.6 kB / 363.7 MB, free: 8.488 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/0.1104, allocations: 0 / 363.7 MB, free: 8.488 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.379e-05/0.1104, allocations: 8 kB / 363.7 MB, free: 8.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.319e-05/0.1104, allocations: 11.94 kB / 363.8 MB, free: 8.469 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002797/0.1107, allocations: 141.6 kB / 363.9 MB, free: 8.332 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001015/0.1117, allocations: 0.6345 MB / 364.5 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003175/0.1121, allocations: 184.5 kB / 364.7 MB, free: 7.465 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001836/0.1123, allocations: 104.8 kB / 364.8 MB, free: 7.359 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.997e-05/0.1123, allocations: 4 kB / 364.8 MB, free: 7.355 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.811e-05/0.1123, allocations: 34.56 kB / 364.9 MB, free: 7.312 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.302e-06/0.1123, allocations: 4 kB / 364.9 MB, free: 7.309 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.001956/0.1143, allocations: 1.062 MB / 365.9 MB, free: 6.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.864e-05/0.1144, allocations: 63.34 kB / 366 MB, free: 6.086 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001893/0.1146, allocations: 183.1 kB / 366.2 MB, free: 5.898 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.514e-05/0.1146, allocations: 29.7 kB / 366.2 MB, free: 5.863 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.1147, allocations: 148.6 kB / 366.3 MB, free: 5.715 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.443e-05/0.1148, allocations: 114.4 kB / 366.4 MB, free: 5.602 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.213e-05/0.1149, allocations: 53.7 kB / 366.5 MB, free: 5.543 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.115, allocations: 330.8 kB / 366.8 MB, free: 5.211 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001521/0.1152, allocations: 79.72 kB / 366.9 MB, free: 5.133 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000181/0.1154, allocations: 103.2 kB / 367 MB, free: 5.023 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003299/0.1157, allocations: 193 kB / 367.2 MB, free: 4.828 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-06/0.1157, allocations: 0 / 367.2 MB, free: 4.828 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005294/0.1163, allocations: 291.1 kB / 367.5 MB, free: 4.535 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.1163, allocations: 8 kB / 367.5 MB, free: 4.527 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.1163, allocations: 0 / 367.5 MB, free: 4.527 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001877/0.1165, allocations: 48.77 kB / 367.5 MB, free: 4.477 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002538/0.1168, allocations: 55.97 kB / 367.6 MB, free: 4.422 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0017/0.1185, allocations: 1.748 MB / 369.3 MB, free: 2.531 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001354/0.1186, allocations: 11.98 kB / 369.3 MB, free: 2.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.994e-05/0.1187, allocations: 8 kB / 369.3 MB, free: 2.512 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.0001591/0.1188, allocations: 137.8 kB / 369.5 MB, free: 2.367 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.602e-05/0.1189, allocations: 35.58 kB / 369.5 MB, free: 2.332 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.377e-05/0.119, allocations: 34.7 kB / 369.6 MB, free: 2.301 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.279e-06/0.119, allocations: 4 kB / 369.6 MB, free: 2.297 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.119, allocations: 0 / 369.6 MB, free: 2.297 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.119, allocations: 0 / 369.6 MB, free: 2.297 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001205/0.1202, allocations: 0.7897 MB / 370.3 MB, free: 1.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.1202, allocations: 0 / 370.3 MB, free: 1.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002683/0.1205, allocations: 59.91 kB / 370.4 MB, free: 1.371 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001286/0.1206, allocations: 36.92 kB / 370.4 MB, free: 1.332 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.023e-05/0.1207, allocations: 12 kB / 370.5 MB, free: 1.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1643/0.285, allocations: 1.473 MB / 371.9 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.285, allocations: 1.922 kB / 371.9 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007695/0.2858, allocations: 478.1 kB / 372.4 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.159e-05/0.2859, allocations: 99.38 kB / 372.5 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.152e-05/0.2859, allocations: 10.59 kB / 372.5 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001451/0.2861, allocations: 9.594 kB / 372.5 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.187e-05/0.2861, allocations: 20.94 kB / 372.5 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.888e-05/0.2862, allocations: 12.39 kB / 372.5 MB, free: 18.72 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001149/0.2863, allocations: 134.4 kB / 372.7 MB, free: 18.65 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2863, allocations: 0 / 372.7 MB, free: 18.65 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004102/0.2867, allocations: 67.06 kB / 372.7 MB, free: 18.65 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.000119/0.2868, allocations: 114.7 kB / 372.9 MB, free: 18.56 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006815/0.2875, allocations: 352.4 kB / 373.2 MB, free: 18.45 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.2875, allocations: 0 / 373.2 MB, free: 18.45 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003212/0.2879, allocations: 239.4 kB / 373.4 MB, free: 18.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004911/0.2884, allocations: 55.02 kB / 373.5 MB, free: 18.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001232/0.2896, allocations: 0.7591 MB / 374.2 MB, free: 17.95 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000208/0.2898, allocations: 0.7593 MB / 375 MB, free: 17.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.266e-05/0.2899, allocations: 23.33 kB / 375 MB, free: 17.24 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2899, allocations: 0 / 375 MB, free: 17.24 MB / 302.1 MB Notification: Performance of Templates: time 0.007407/0.2973, allocations: 3.87 MB / 378.9 MB, free: 16.92 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches