Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.FirstGrounded,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded") translateModel(Modelica.Mechanics.Rotational.Examples.FirstGrounded,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001066/0.001066, allocations: 198.3 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.181/1.181, allocations: 227.2 MB / 245 MB, free: 5.891 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008602/0.0008602, allocations: 96.98 kB / 297.3 MB, free: 5.949 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002124/0.0002125, allocations: 8 kB / 357.9 MB, free: 9.301 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1916/0.1918, allocations: 51.48 MB / 409.4 MB, free: 26.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09006/0.2819, allocations: 79.22 MB / 488.6 MB, free: 11.35 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001936/0.2821, allocations: 71.97 kB / 488.7 MB, free: 11.28 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01008/0.2922, allocations: 3.992 MB / 492.7 MB, free: 7.285 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2923, allocations: 0 / 492.7 MB, free: 7.285 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.217e-05/0.2923, allocations: 4 kB / 492.7 MB, free: 7.281 MB / 362.7 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.0005452/0.2928, allocations: 494.9 kB / 493.2 MB, free: 6.75 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.194e-05/0.2929, allocations: 8.031 kB / 493.2 MB, free: 6.742 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001462/0.293, allocations: 39.7 kB / 493.2 MB, free: 6.703 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002242/0.2933, allocations: 223.4 kB / 493.4 MB, free: 6.441 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.613e-05/0.2933, allocations: 20.44 kB / 493.5 MB, free: 6.422 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.878e-05/0.2933, allocations: 27.86 kB / 493.5 MB, free: 6.395 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003198/0.2936, allocations: 205.9 kB / 493.7 MB, free: 6.18 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/0.2937, allocations: 7.938 kB / 493.7 MB, free: 6.172 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.065e-05/0.2937, allocations: 8 kB / 493.7 MB, free: 6.164 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.2937, allocations: 4 kB / 493.7 MB, free: 6.16 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002353/0.294, allocations: 137.7 kB / 493.9 MB, free: 6.027 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008798/0.2948, allocations: 0.7054 MB / 494.6 MB, free: 5.266 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002338/0.2951, allocations: 150 kB / 494.7 MB, free: 5.113 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.793e-05/0.2951, allocations: 4 kB / 494.7 MB, free: 5.109 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.868e-05/0.2951, allocations: 38.55 kB / 494.7 MB, free: 5.062 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 1.393e-06/0.2952, allocations: 4 kB / 494.7 MB, free: 5.059 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.001432/0.2966, allocations: 0.8891 MB / 495.6 MB, free: 4.086 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.977e-05/0.2966, allocations: 55.41 kB / 495.7 MB, free: 4.02 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001384/0.2968, allocations: 154.4 kB / 495.8 MB, free: 3.859 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.744e-05/0.2968, allocations: 25.7 kB / 495.9 MB, free: 3.828 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.659e-05/0.2969, allocations: 148.2 kB / 496 MB, free: 3.676 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.548e-05/0.297, allocations: 82.97 kB / 496.1 MB, free: 3.594 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.014e-05/0.297, allocations: 8 kB / 496.1 MB, free: 3.586 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.611e-05/0.2971, allocations: 342.7 kB / 496.4 MB, free: 3.242 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001142/0.2972, allocations: 59.91 kB / 496.5 MB, free: 3.184 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001278/0.2973, allocations: 101.3 kB / 496.6 MB, free: 3.07 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001358/0.2975, allocations: 79.92 kB / 496.7 MB, free: 2.992 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.2975, allocations: 0 / 496.7 MB, free: 2.992 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003999/0.2979, allocations: 250 kB / 496.9 MB, free: 2.738 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.2979, allocations: 4 kB / 496.9 MB, free: 2.734 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.2979, allocations: 4.125 kB / 496.9 MB, free: 2.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001424/0.2981, allocations: 36.83 kB / 497 MB, free: 2.691 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001957/0.2983, allocations: 51.92 kB / 497 MB, free: 2.641 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001118/0.2994, allocations: 1.394 MB / 498.4 MB, free: 1.113 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001327/0.2995, allocations: 15.95 kB / 498.4 MB, free: 1.098 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.435e-05/0.2996, allocations: 8 kB / 498.4 MB, free: 1.09 MB / 362.7 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 (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000128/0.2997, allocations: 133.8 kB / 498.6 MB, free: 0.9492 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.95e-05/0.2997, allocations: 19.81 kB / 498.6 MB, free: 0.9297 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.902e-05/0.2998, allocations: 25.94 kB / 498.6 MB, free: 0.9023 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.2998, allocations: 0 / 498.6 MB, free: 0.9023 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.2998, allocations: 3.984 kB / 498.6 MB, free: 0.8984 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.2998, allocations: 7.953 kB / 498.6 MB, free: 0.8906 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008067/0.3006, allocations: 0.6491 MB / 499.3 MB, free: 176 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.3007, allocations: 0 / 499.3 MB, free: 176 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002127/0.3009, allocations: 51.91 kB / 499.3 MB, free: 124 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.916e-05/0.301, allocations: 28.84 kB / 499.3 MB, free: 92 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.874e-05/0.301, allocations: 8 kB / 499.4 MB, free: 84 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009606/0.302, allocations: 1.39 MB / 0.489 GB, free: 14.56 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.302, allocations: 4.031 kB / 0.489 GB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005211/0.3025, allocations: 445.3 kB / 0.4894 GB, free: 14.08 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.514e-05/0.3026, allocations: 96.83 kB / 0.4895 GB, free: 13.97 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.073e-05/0.3026, allocations: 0 / 0.4895 GB, free: 13.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001196/0.3027, allocations: 12 kB / 0.4895 GB, free: 13.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.769e-05/0.3028, allocations: 23.95 kB / 0.4896 GB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.018e-05/0.3028, allocations: 4 kB / 0.4896 GB, free: 13.93 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.538e-05/0.3029, allocations: 127.2 kB / 0.4897 GB, free: 13.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3029, allocations: 0 / 0.4897 GB, free: 13.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003108/0.3032, allocations: 71.94 kB / 0.4898 GB, free: 13.73 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001258/0.3034, allocations: 103.2 kB / 0.4899 GB, free: 13.62 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005018/0.3039, allocations: 294.6 kB / 0.4901 GB, free: 13.32 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3039, allocations: 4.062 kB / 0.4901 GB, free: 13.32 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002786/0.3042, allocations: 214.6 kB / 0.4903 GB, free: 13.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003104/0.3045, allocations: 42.05 kB / 0.4904 GB, free: 13.06 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001073/0.3056, allocations: 0.8136 MB / 0.4912 GB, free: 12.21 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002746/0.3059, allocations: 0.7446 MB / 0.4919 GB, free: 11.44 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.91e-05/0.306, allocations: 29.92 kB / 0.4919 GB, free: 11.41 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.558e-05/0.306, allocations: 15.44 kB / 0.4919 GB, free: 11.4 MB / 378.7 MB Notification: Performance of SimCode: time 3.41e-07/0.306, allocations: 0 / 0.4919 GB, free: 11.4 MB / 378.7 MB Notification: Performance of Templates: time 0.004646/0.3107, allocations: 2.142 MB / 0.494 GB, free: 9.277 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches