Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Mechanics.Rotational.Examples.First") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001418/0.001418, allocations: 197.4 kB / 17.38 MB, free: 4.316 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.268/1.268, allocations: 226.5 MB / 244.7 MB, free: 6.453 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007846/0.0007847, allocations: 98.75 kB / 296.8 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002391/0.0002391, allocations: 8 kB / 356.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1973/0.1976, allocations: 51.3 MB / 408 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.001764/0.1994, allocations: 1.982 MB / 410 MB, free: 25.7 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007771/0.2002, allocations: 0.5838 MB / 410.6 MB, free: 25.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001097/0.2003, allocations: 7.938 kB / 410.6 MB, free: 25.11 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001163/0.2004, allocations: 30.12 kB / 410.6 MB, free: 25.08 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001159/0.2006, allocations: 59.47 kB / 410.7 MB, free: 25.02 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001753/0.2008, allocations: 51.94 kB / 410.8 MB, free: 24.97 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002024/0.201, allocations: 256.4 kB / 411 MB, free: 24.72 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001601/0.2011, allocations: 87.3 kB / 411.1 MB, free: 24.63 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001493/0.2013, allocations: 88.34 kB / 411.2 MB, free: 24.54 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001105/0.2014, allocations: 100.3 kB / 411.3 MB, free: 24.45 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.486e-05/0.2015, allocations: 12 kB / 411.3 MB, free: 24.43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.651e-05/0.2015, allocations: 13.97 kB / 411.3 MB, free: 24.42 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.758e-05/0.2016, allocations: 39.84 kB / 411.3 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.37e-05/0.2016, allocations: 133.1 kB / 411.5 MB, free: 24.25 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001553/0.2018, allocations: 196.4 kB / 411.7 MB, free: 24.05 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.2018, allocations: 0 / 411.7 MB, free: 24.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2018, allocations: 0.625 kB / 411.7 MB, free: 24.05 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.2018, allocations: 0 / 411.7 MB, free: 24.05 MB / 298.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.0004916/0.2023, allocations: 491.1 kB / 412.1 MB, free: 23.53 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.2024, allocations: 12.03 kB / 412.2 MB, free: 23.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001335/0.2025, allocations: 36.64 kB / 412.2 MB, free: 23.48 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001961/0.2027, allocations: 240.5 kB / 412.4 MB, free: 23.21 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.581e-05/0.2027, allocations: 21.69 kB / 412.4 MB, free: 23.19 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.404e-05/0.2028, allocations: 20.38 kB / 412.5 MB, free: 23.17 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002837/0.2031, allocations: 196.3 kB / 412.7 MB, free: 22.97 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.2031, allocations: 11.88 kB / 412.7 MB, free: 22.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.929e-05/0.2031, allocations: 8 kB / 412.7 MB, free: 22.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.717e-06/0.2031, allocations: 4 kB / 412.7 MB, free: 22.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002258/0.2034, allocations: 145.7 kB / 412.8 MB, free: 22.8 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007121/0.2041, allocations: 0.6307 MB / 413.5 MB, free: 22.12 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002291/0.2043, allocations: 182.5 kB / 413.6 MB, free: 21.94 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001345/0.2045, allocations: 101.8 kB / 413.7 MB, free: 21.84 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.097e-05/0.2045, allocations: 0 / 413.7 MB, free: 21.84 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.201e-05/0.2045, allocations: 38.56 kB / 413.8 MB, free: 21.79 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.032e-06/0.2045, allocations: 0 / 413.8 MB, free: 21.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.001518/0.206, allocations: 1.084 MB / 414.9 MB, free: 20.61 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.072e-05/0.2061, allocations: 59.34 kB / 414.9 MB, free: 20.54 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001142/0.2062, allocations: 184.8 kB / 415.1 MB, free: 20.36 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.451e-05/0.2062, allocations: 33.7 kB / 415.1 MB, free: 20.32 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.976e-05/0.2063, allocations: 136.7 kB / 415.3 MB, free: 20.18 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.993e-05/0.2063, allocations: 114.3 kB / 415.4 MB, free: 20.07 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.106e-05/0.2063, allocations: 8 kB / 415.4 MB, free: 20.06 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.896e-05/0.2064, allocations: 334.8 kB / 415.7 MB, free: 19.72 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001212/0.2065, allocations: 75.72 kB / 415.8 MB, free: 19.65 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001307/0.2067, allocations: 103.4 kB / 415.9 MB, free: 19.54 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002519/0.2069, allocations: 192.2 kB / 416.1 MB, free: 19.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.2069, allocations: 4 kB / 416.1 MB, free: 19.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003906/0.2073, allocations: 295.3 kB / 416.4 MB, free: 19.04 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.2074, allocations: 4 kB / 416.4 MB, free: 19.04 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.962e-06/0.2074, allocations: 4 kB / 416.4 MB, free: 19.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001526/0.2075, allocations: 40.83 kB / 416.4 MB, free: 18.99 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002151/0.2077, allocations: 63.97 kB / 416.5 MB, free: 18.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009495/0.2087, allocations: 1.577 MB / 418 MB, free: 17.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001103/0.2088, allocations: 12.02 kB / 418.1 MB, free: 17.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.509e-05/0.2089, allocations: 11.94 kB / 418.1 MB, free: 17.19 MB / 298.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 9.372e-05/0.209, allocations: 146.2 kB / 418.2 MB, free: 17.04 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.604e-05/0.209, allocations: 19.72 kB / 418.2 MB, free: 17.02 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.779e-05/0.209, allocations: 30.66 kB / 418.3 MB, free: 16.99 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.2091, allocations: 11.98 kB / 418.3 MB, free: 16.98 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.2091, allocations: 0 / 418.3 MB, free: 16.98 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.2091, allocations: 0 / 418.3 MB, free: 16.98 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008159/0.2099, allocations: 0.7781 MB / 419.1 MB, free: 16.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.2099, allocations: 0 / 419.1 MB, free: 16.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002286/0.2101, allocations: 63.84 kB / 419.1 MB, free: 16.06 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.764e-05/0.2103, allocations: 36.92 kB / 419.1 MB, free: 16.02 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.482e-05/0.2103, allocations: 12 kB / 419.2 MB, free: 16.01 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006744/0.211, allocations: 1.378 MB / 420.5 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.211, allocations: 4 kB / 420.5 MB, free: 14.49 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005157/0.2115, allocations: 487.2 kB / 421 MB, free: 13.99 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.482e-05/0.2115, allocations: 100.8 kB / 421.1 MB, free: 13.87 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.475e-05/0.2116, allocations: 8 kB / 421.1 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001273/0.2117, allocations: 12.03 kB / 421.1 MB, free: 13.85 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.892e-05/0.2118, allocations: 31.84 kB / 421.2 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.166e-05/0.2118, allocations: 7.938 kB / 421.2 MB, free: 13.81 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.785e-05/0.2118, allocations: 127.2 kB / 421.3 MB, free: 13.69 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2119, allocations: 4 kB / 421.3 MB, free: 13.68 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003196/0.2122, allocations: 68 kB / 421.4 MB, free: 13.62 MB / 298.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 9.366e-05/0.2123, allocations: 103.2 kB / 421.5 MB, free: 13.51 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004969/0.2128, allocations: 343.7 kB / 421.8 MB, free: 13.16 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2128, allocations: 4 kB / 421.8 MB, free: 13.16 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002628/0.2131, allocations: 247.2 kB / 422.1 MB, free: 12.9 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004059/0.2135, allocations: 39.7 kB / 422.1 MB, free: 12.87 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000981/0.2145, allocations: 0.9005 MB / 423 MB, free: 11.93 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001511/0.2146, allocations: 0.7525 MB / 423.7 MB, free: 11.15 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.969e-05/0.2147, allocations: 23.44 kB / 423.8 MB, free: 11.13 MB / 298.7 MB Notification: Performance of SimCode: time 4.51e-07/0.2147, allocations: 0 / 423.8 MB, free: 11.13 MB / 298.7 MB Notification: Performance of Templates: time 0.004117/0.2188, allocations: 3.812 MB / 427.6 MB, free: 7.32 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches