Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001069/0.001069, allocations: 191.6 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.267/1.267, allocations: 226.6 MB / 244.7 MB, free: 6.465 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007899/0.0007899, allocations: 100.3 kB / 296.8 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003547/0.0003549, allocations: 11.98 kB / 356.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.215/0.2154, allocations: 51.29 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.001906/0.2173, allocations: 1.978 MB / 410 MB, free: 25.71 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007367/0.2181, allocations: 0.5912 MB / 410.6 MB, free: 25.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001078/0.2182, allocations: 6.312 kB / 410.6 MB, free: 25.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001041/0.2183, allocations: 23.78 kB / 410.6 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.896e-05/0.2184, allocations: 63.52 kB / 410.7 MB, free: 25.03 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001678/0.2186, allocations: 45.16 kB / 410.7 MB, free: 24.99 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001964/0.2188, allocations: 242.7 kB / 411 MB, free: 24.75 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001459/0.219, allocations: 76.02 kB / 411.1 MB, free: 24.67 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001365/0.2191, allocations: 91.64 kB / 411.1 MB, free: 24.58 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001026/0.2192, allocations: 87.56 kB / 411.2 MB, free: 24.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.303e-05/0.2193, allocations: 12 kB / 411.2 MB, free: 24.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.402e-05/0.2193, allocations: 12 kB / 411.3 MB, free: 24.47 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.453e-05/0.2194, allocations: 39.83 kB / 411.3 MB, free: 24.43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.265e-05/0.2194, allocations: 121.2 kB / 411.4 MB, free: 24.31 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001413/0.2196, allocations: 179.4 kB / 411.6 MB, free: 24.14 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.2196, allocations: 3.984 kB / 411.6 MB, free: 24.13 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.2196, allocations: 0 / 411.6 MB, free: 24.13 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.2196, allocations: 0 / 411.6 MB, free: 24.13 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0005517/0.2202, allocations: 489.6 kB / 412.1 MB, free: 23.61 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.2202, allocations: 12.03 kB / 412.1 MB, free: 23.6 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001472/0.2204, allocations: 36.56 kB / 412.1 MB, free: 23.56 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000194/0.2206, allocations: 232.6 kB / 412.3 MB, free: 23.29 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.038e-05/0.2206, allocations: 20.81 kB / 412.4 MB, free: 23.27 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.231e-05/0.2206, allocations: 28.31 kB / 412.4 MB, free: 23.25 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002995/0.221, allocations: 206.2 kB / 412.6 MB, free: 23.03 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.536e-05/0.221, allocations: 4 kB / 412.6 MB, free: 23.03 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.008e-05/0.221, allocations: 8 kB / 412.6 MB, free: 23.02 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.221, allocations: 4 kB / 412.6 MB, free: 23.02 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002232/0.2212, allocations: 133.7 kB / 412.7 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000782/0.222, allocations: 0.7131 MB / 413.4 MB, free: 22.12 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002182/0.2223, allocations: 150.5 kB / 413.6 MB, free: 21.96 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/0.2224, allocations: 79.23 kB / 413.7 MB, free: 21.88 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.715e-05/0.2224, allocations: 4 kB / 413.7 MB, free: 21.88 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.249e-05/0.2224, allocations: 34.56 kB / 413.7 MB, free: 21.84 MB / 298.7 MB Notification: Performance of pre-optimization done (n=20): time 1.432e-06/0.2224, allocations: 0 / 413.7 MB, free: 21.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.001265/0.2237, allocations: 0.8992 MB / 414.6 MB, free: 20.85 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.147e-05/0.2237, allocations: 59.41 kB / 414.7 MB, free: 20.78 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001074/0.2239, allocations: 167.2 kB / 414.8 MB, free: 20.6 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.288e-05/0.2239, allocations: 33.64 kB / 414.9 MB, free: 20.56 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.85e-05/0.2239, allocations: 144.2 kB / 415 MB, free: 20.42 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.071e-05/0.224, allocations: 90.66 kB / 415.1 MB, free: 20.33 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.018e-05/0.224, allocations: 8 kB / 415.1 MB, free: 20.32 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.019e-05/0.224, allocations: 330.8 kB / 415.4 MB, free: 19.99 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001204/0.2242, allocations: 55.97 kB / 415.5 MB, free: 19.93 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001162/0.2243, allocations: 97.31 kB / 415.6 MB, free: 19.82 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000225/0.2245, allocations: 180.1 kB / 415.7 MB, free: 19.63 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.2245, allocations: 0 / 415.7 MB, free: 19.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003594/0.2249, allocations: 250 kB / 416 MB, free: 19.38 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.2249, allocations: 11.94 kB / 416 MB, free: 19.37 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.2249, allocations: 0 / 416 MB, free: 19.37 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001447/0.2251, allocations: 36.77 kB / 416 MB, free: 19.33 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001918/0.2253, allocations: 47.98 kB / 416.1 MB, free: 19.28 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008158/0.2261, allocations: 1.375 MB / 417.5 MB, free: 17.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001081/0.2262, allocations: 12.06 kB / 417.5 MB, free: 17.76 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.403e-05/0.2263, allocations: 15.94 kB / 417.5 MB, free: 17.75 MB / 298.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 8.442e-05/0.2263, allocations: 133.8 kB / 417.6 MB, free: 17.61 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.33e-05/0.2264, allocations: 19.72 kB / 417.6 MB, free: 17.59 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.085e-05/0.2264, allocations: 25.88 kB / 417.7 MB, free: 17.56 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-06/0.2264, allocations: 4 kB / 417.7 MB, free: 17.55 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.2264, allocations: 0 / 417.7 MB, free: 17.55 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.2265, allocations: 3.984 kB / 417.7 MB, free: 17.55 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006808/0.2271, allocations: 0.6596 MB / 418.3 MB, free: 16.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.2272, allocations: 4.062 kB / 418.3 MB, free: 16.81 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001914/0.2274, allocations: 43.98 kB / 418.4 MB, free: 16.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.774e-05/0.2275, allocations: 32.83 kB / 418.4 MB, free: 16.73 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.507e-05/0.2275, allocations: 8 kB / 418.4 MB, free: 16.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000708/0.2282, allocations: 1.378 MB / 419.8 MB, free: 15.22 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.2282, allocations: 7.969 kB / 419.8 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004515/0.2287, allocations: 414.1 kB / 420.2 MB, free: 14.78 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.969e-05/0.2287, allocations: 92.92 kB / 420.3 MB, free: 14.67 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.157e-05/0.2287, allocations: 4 kB / 420.3 MB, free: 14.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001141/0.2289, allocations: 8.031 kB / 420.3 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.594e-05/0.2289, allocations: 23.92 kB / 420.3 MB, free: 14.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.708e-06/0.2289, allocations: 11.94 kB / 420.3 MB, free: 14.62 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.401e-05/0.229, allocations: 127.2 kB / 420.5 MB, free: 14.5 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.229, allocations: 0 / 420.5 MB, free: 14.5 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002861/0.2293, allocations: 60 kB / 420.5 MB, free: 14.44 MB / 298.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 9.151e-05/0.2294, allocations: 99.25 kB / 420.6 MB, free: 14.34 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004275/0.2298, allocations: 302.4 kB / 420.9 MB, free: 14.03 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2298, allocations: 0 / 420.9 MB, free: 14.03 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002389/0.2301, allocations: 214.5 kB / 421.1 MB, free: 13.8 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003921/0.2305, allocations: 45.08 kB / 421.2 MB, free: 13.76 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009223/0.2314, allocations: 0.8375 MB / 422 MB, free: 12.89 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001275/0.2316, allocations: 0.7485 MB / 422.8 MB, free: 12.11 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.773e-05/0.2316, allocations: 19.44 kB / 422.8 MB, free: 12.1 MB / 298.7 MB Notification: Performance of SimCode: time 3.4e-07/0.2316, allocations: 3.938 kB / 422.8 MB, free: 12.09 MB / 298.7 MB Notification: Performance of Templates: time 0.003929/0.2356, allocations: 3.417 MB / 426.2 MB, free: 8.68 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches