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/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.First,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.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_trunk_Modelica.Mechanics.Rotational.Examples.First") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001048/0.001048, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.208/1.208, 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.0008988/0.0008989, allocations: 101.9 kB / 297.3 MB, free: 5.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002115/0.0002116, allocations: 4 kB / 357.9 MB, free: 9.316 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2056/0.2059, allocations: 51.48 MB / 409.4 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08994/0.2958, allocations: 79.22 MB / 488.6 MB, free: 11.38 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002141/0.2961, allocations: 71.95 kB / 488.7 MB, free: 11.3 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01093/0.307, allocations: 4.261 MB / 493 MB, free: 7.035 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3071, allocations: 0 / 493 MB, free: 7.035 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.829e-05/0.3071, allocations: 4 kB / 493 MB, free: 7.031 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0006666/0.3078, allocations: 498.9 kB / 493.4 MB, free: 6.496 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.3078, allocations: 12.03 kB / 493.5 MB, free: 6.484 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001797/0.308, allocations: 39.61 kB / 493.5 MB, free: 6.445 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002863/0.3083, allocations: 223.4 kB / 493.7 MB, free: 6.184 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.084e-05/0.3083, allocations: 20.44 kB / 493.7 MB, free: 6.164 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.018e-05/0.3084, allocations: 27.95 kB / 493.8 MB, free: 6.137 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003858/0.3088, allocations: 191.3 kB / 494 MB, free: 5.941 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.998e-05/0.3088, allocations: 4 kB / 494 MB, free: 5.938 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.166e-05/0.3088, allocations: 8 kB / 494 MB, free: 5.93 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.3089, allocations: 8 kB / 494 MB, free: 5.922 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002742/0.3091, allocations: 141.6 kB / 494.1 MB, free: 5.785 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008822/0.31, allocations: 0.6383 MB / 494.7 MB, free: 5.094 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002715/0.3103, allocations: 181.2 kB / 494.9 MB, free: 4.914 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.908e-05/0.3104, allocations: 4 kB / 494.9 MB, free: 4.91 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.307e-05/0.3104, allocations: 42.58 kB / 495 MB, free: 4.859 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.463e-06/0.3104, allocations: 0 / 495 MB, free: 4.859 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.001738/0.3121, allocations: 1.073 MB / 496 MB, free: 3.691 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.096e-05/0.3122, allocations: 51.41 kB / 496.1 MB, free: 3.629 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001329/0.3123, allocations: 166.2 kB / 496.3 MB, free: 3.461 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.183e-05/0.3124, allocations: 33.7 kB / 496.3 MB, free: 3.422 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.872e-05/0.3124, allocations: 136.7 kB / 496.4 MB, free: 3.285 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.938e-05/0.3125, allocations: 114.5 kB / 496.5 MB, free: 3.172 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.237e-05/0.3126, allocations: 8 kB / 496.5 MB, free: 3.164 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.3127, allocations: 334.7 kB / 496.9 MB, free: 2.828 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001428/0.3128, allocations: 79.95 kB / 496.9 MB, free: 2.75 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001444/0.313, allocations: 98.81 kB / 497 MB, free: 2.645 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001467/0.3131, allocations: 82.75 kB / 497.1 MB, free: 2.566 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.3131, allocations: 4 kB / 497.1 MB, free: 2.562 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004672/0.3136, allocations: 302.7 kB / 497.4 MB, free: 2.258 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.3136, allocations: 6.344 kB / 497.4 MB, free: 2.254 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.3136, allocations: 0 / 497.4 MB, free: 2.254 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001506/0.3138, allocations: 44.8 kB / 497.5 MB, free: 2.207 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002287/0.314, allocations: 63.89 kB / 497.5 MB, free: 2.145 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001279/0.3153, allocations: 1.589 MB / 499.1 MB, free: 432 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001153/0.3154, allocations: 8 kB / 499.1 MB, free: 424 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.517e-05/0.3155, allocations: 15.98 kB / 499.1 MB, free: 408 kB / 362.7 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 (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%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001141/0.3156, allocations: 140 kB / 499.3 MB, free: 260 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.305e-05/0.3156, allocations: 27.67 kB / 499.3 MB, free: 232 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.533e-05/0.3157, allocations: 30.66 kB / 499.3 MB, free: 200 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.3157, allocations: 4 kB / 499.3 MB, free: 196 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.3157, allocations: 4.062 kB / 499.3 MB, free: 192 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.3157, allocations: 3.984 kB / 499.4 MB, free: 188 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001006/0.3167, allocations: 0.7824 MB / 0.4884 GB, free: 15.33 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.3168, allocations: 0 / 0.4884 GB, free: 15.33 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002555/0.317, allocations: 67.86 kB / 0.4885 GB, free: 15.26 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001047/0.3171, allocations: 32.83 kB / 0.4885 GB, free: 15.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.742e-05/0.3172, allocations: 4 kB / 0.4885 GB, free: 15.22 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009463/0.3181, allocations: 1.395 MB / 0.4899 GB, free: 13.69 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3181, allocations: 64 / 0.4899 GB, free: 13.69 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006337/0.3188, allocations: 0.5229 MB / 0.4904 GB, free: 13.12 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.316e-05/0.3188, allocations: 96.95 kB / 0.4905 GB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.527e-05/0.3189, allocations: 7.953 kB / 0.4905 GB, free: 13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001298/0.319, allocations: 11.94 kB / 0.4905 GB, free: 12.99 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.14e-05/0.3191, allocations: 23.97 kB / 0.4905 GB, free: 12.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.317e-05/0.3191, allocations: 11.94 kB / 0.4905 GB, free: 12.95 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.291e-05/0.3192, allocations: 135.2 kB / 0.4907 GB, free: 12.82 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3192, allocations: 0 / 0.4907 GB, free: 12.82 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003387/0.3195, allocations: 68 kB / 0.4907 GB, free: 12.75 MB / 378.7 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 (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.0001286/0.3197, allocations: 115.1 kB / 0.4908 GB, free: 12.63 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005885/0.3203, allocations: 347.6 kB / 0.4912 GB, free: 12.28 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3203, allocations: 0 / 0.4912 GB, free: 12.28 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003614/0.3206, allocations: 242.5 kB / 0.4914 GB, free: 12.03 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003294/0.321, allocations: 36.41 kB / 0.4914 GB, free: 12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001267/0.3223, allocations: 0.8629 MB / 0.4923 GB, free: 11.1 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003145/0.3226, allocations: 0.7678 MB / 0.493 GB, free: 10.3 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.797e-05/0.3227, allocations: 26.27 kB / 0.4931 GB, free: 10.27 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.858e-05/0.3227, allocations: 23.44 kB / 0.4931 GB, free: 10.25 MB / 378.7 MB Notification: Performance of SimCode: time 2.324e-06/0.3228, allocations: 0 / 0.4931 GB, free: 10.25 MB / 378.7 MB Notification: Performance of Templates: time 0.005472/0.3282, allocations: 2.404 MB / 0.4954 GB, free: 7.863 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.makefile (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 & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches