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.0009851/0.000985, allocations: 201.5 kB / 18.1 MB, free: 3.605 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 226.5 MB / 245.4 MB, free: 6.445 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007644/0.0007644, allocations: 103.9 kB / 297.5 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000243/0.0002431, allocations: 4 kB / 358.1 MB, free: 10.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2161/0.2164, allocations: 51.29 MB / 409.4 MB, free: 27.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09509/0.3115, allocations: 79.17 MB / 488.5 MB, free: 12.36 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002232/0.3117, allocations: 71.97 kB / 488.6 MB, free: 12.29 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01161/0.3234, allocations: 4.252 MB / 492.9 MB, free: 8.023 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3234, allocations: 4 kB / 492.9 MB, free: 8.02 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.622e-05/0.3234, allocations: 4 kB / 492.9 MB, free: 8.016 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.0006675/0.3241, allocations: 491 kB / 493.3 MB, free: 7.484 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.3242, allocations: 8.031 kB / 493.3 MB, free: 7.477 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000172/0.3243, allocations: 44.64 kB / 493.4 MB, free: 7.434 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002734/0.3246, allocations: 236.5 kB / 493.6 MB, free: 7.16 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.3247, allocations: 16.81 kB / 493.6 MB, free: 7.145 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.5e-05/0.3247, allocations: 28.36 kB / 493.7 MB, free: 7.117 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003718/0.3251, allocations: 191.8 kB / 493.9 MB, free: 6.922 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.881e-05/0.3251, allocations: 192 / 493.9 MB, free: 6.922 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.163e-05/0.3251, allocations: 11.88 kB / 493.9 MB, free: 6.91 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.3252, allocations: 8 kB / 493.9 MB, free: 6.902 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002807/0.3254, allocations: 145.7 kB / 494 MB, free: 6.762 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009218/0.3264, allocations: 0.6344 MB / 494.7 MB, free: 6.074 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002789/0.3267, allocations: 181 kB / 494.8 MB, free: 5.891 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001669/0.3268, allocations: 96.83 kB / 494.9 MB, free: 5.793 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.251e-05/0.3269, allocations: 4 kB / 494.9 MB, free: 5.789 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.482e-05/0.3269, allocations: 34.56 kB / 495 MB, free: 5.746 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.513e-06/0.3269, allocations: 4 kB / 495 MB, free: 5.742 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.001802/0.3287, allocations: 1.077 MB / 496 MB, free: 4.574 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.17e-05/0.3288, allocations: 55.41 kB / 496.1 MB, free: 4.508 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001558/0.3289, allocations: 184.5 kB / 496.3 MB, free: 4.32 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.14e-05/0.329, allocations: 29.7 kB / 496.3 MB, free: 4.285 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.219e-05/0.329, allocations: 140.7 kB / 496.4 MB, free: 4.145 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.802e-05/0.3291, allocations: 122.2 kB / 496.6 MB, free: 4.023 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.234e-05/0.3291, allocations: 4 kB / 496.6 MB, free: 4.02 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.3293, allocations: 338.8 kB / 496.9 MB, free: 3.68 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001431/0.3294, allocations: 67.97 kB / 497 MB, free: 3.613 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001637/0.3296, allocations: 103.4 kB / 497.1 MB, free: 3.504 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003388/0.3299, allocations: 196.4 kB / 497.3 MB, free: 3.305 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.33, allocations: 4 kB / 497.3 MB, free: 3.301 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005061/0.3305, allocations: 303.6 kB / 497.6 MB, free: 2.996 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.3305, allocations: 4 kB / 497.6 MB, free: 2.992 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.3305, allocations: 0 / 497.6 MB, free: 2.992 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001615/0.3307, allocations: 44.78 kB / 497.6 MB, free: 2.945 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002361/0.3309, allocations: 55.97 kB / 497.7 MB, free: 2.891 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001441/0.3324, allocations: 1.577 MB / 499.2 MB, free: 1.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001271/0.3325, allocations: 12.03 kB / 499.2 MB, free: 1.168 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.702e-05/0.3325, allocations: 8 kB / 499.3 MB, free: 1.16 MB / 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.0001245/0.3327, allocations: 141.9 kB / 499.4 MB, free: 1.012 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.453e-05/0.3327, allocations: 19.72 kB / 499.4 MB, free: 0.9922 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.361e-05/0.3328, allocations: 30.64 kB / 499.4 MB, free: 0.9609 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.3328, allocations: 11.88 kB / 499.5 MB, free: 0.9492 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3328, allocations: 0 / 499.5 MB, free: 0.9492 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.3328, allocations: 4.188 kB / 499.5 MB, free: 0.9453 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001084/0.3339, allocations: 0.7898 MB / 0.4885 GB, free: 84 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.3339, allocations: 4.094 kB / 0.4885 GB, free: 80 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002521/0.3342, allocations: 55.97 kB / 0.4886 GB, free: 24 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001369/0.3343, allocations: 40.72 kB / 0.4886 GB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.118e-05/0.3344, allocations: 8 kB / 0.4886 GB, free: 15.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001068/0.3354, allocations: 1.378 MB / 0.49 GB, free: 14.46 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.3354, allocations: 8.016 kB / 0.49 GB, free: 14.45 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006585/0.3361, allocations: 491.1 kB / 0.4904 GB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.06e-05/0.3362, allocations: 92.92 kB / 0.4905 GB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.457e-05/0.3362, allocations: 4 kB / 0.4905 GB, free: 13.83 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001324/0.3364, allocations: 12.03 kB / 0.4906 GB, free: 13.82 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.328e-05/0.3364, allocations: 31.91 kB / 0.4906 GB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.316e-05/0.3365, allocations: 8 kB / 0.4906 GB, free: 13.78 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001106/0.3366, allocations: 127.2 kB / 0.4907 GB, free: 13.66 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3366, allocations: 0 / 0.4907 GB, free: 13.66 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003602/0.3369, allocations: 68 kB / 0.4908 GB, free: 13.59 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.0001545/0.3371, allocations: 123 kB / 0.4909 GB, free: 13.46 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006053/0.3377, allocations: 339.6 kB / 0.4912 GB, free: 13.11 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.3377, allocations: 0 / 0.4912 GB, free: 13.11 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003853/0.3381, allocations: 247.6 kB / 0.4915 GB, free: 12.86 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004351/0.3386, allocations: 39.92 kB / 0.4915 GB, free: 12.82 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001358/0.3399, allocations: 0.8774 MB / 0.4923 GB, free: 11.91 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000376/0.3403, allocations: 0.7564 MB / 0.4931 GB, free: 11.13 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.649e-05/0.3404, allocations: 22.28 kB / 0.4931 GB, free: 11.11 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.34e-05/0.3405, allocations: 19.44 kB / 0.4931 GB, free: 11.09 MB / 378.7 MB Notification: Performance of SimCode: time 4.11e-07/0.3405, allocations: 4 kB / 0.4931 GB, free: 11.09 MB / 378.7 MB Notification: Performance of Templates: time 0.005928/0.3464, allocations: 2.446 MB / 0.4955 GB, free: 8.66 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/jenkins1/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