Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") translateModel(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001014/0.001014, allocations: 196.2 kB / 16.09 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 226.6 MB / 243.4 MB, free: 8.078 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007911/0.000791, allocations: 97.48 kB / 295.5 MB, free: 6.883 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3182/0.3182, allocations: 44.82 MB / 392.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002647/0.0002647, allocations: 8 kB / 465.3 MB, free: 12.69 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2942/0.2945, allocations: 62.97 MB / 0.5159 GB, free: 36.82 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.002104/0.2967, allocations: 1.986 MB / 0.5178 GB, free: 35.39 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009809/0.2977, allocations: 0.8018 MB / 0.5186 GB, free: 34.82 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001003/0.2978, allocations: 7.969 kB / 0.5186 GB, free: 34.82 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002299/0.298, allocations: 38.53 kB / 0.5186 GB, free: 34.8 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001371/0.2982, allocations: 65.62 kB / 0.5187 GB, free: 34.76 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002086/0.2984, allocations: 107.2 kB / 0.5188 GB, free: 34.7 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002393/0.2986, allocations: 307.3 kB / 0.5191 GB, free: 34.55 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001582/0.2988, allocations: 77.09 kB / 0.5192 GB, free: 34.51 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000192/0.299, allocations: 128 kB / 0.5193 GB, free: 34.46 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001651/0.2992, allocations: 143.7 kB / 0.5194 GB, free: 34.41 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.282e-05/0.2992, allocations: 14.75 kB / 0.5194 GB, free: 34.41 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001208/0.2994, allocations: 64.5 kB / 0.5195 GB, free: 34.39 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.842e-05/0.2994, allocations: 60.14 kB / 0.5196 GB, free: 34.36 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001031/0.2996, allocations: 140 kB / 0.5197 GB, free: 34.27 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002349/0.2998, allocations: 270.6 kB / 0.52 GB, free: 34.2 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.2998, allocations: 0 / 0.52 GB, free: 34.2 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.604e-06/0.2998, allocations: 4 kB / 0.52 GB, free: 34.2 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.2998, allocations: 0 / 0.52 GB, free: 34.2 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0006976/0.3005, allocations: 0.535 MB / 0.5205 GB, free: 33.74 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.296e-05/0.3006, allocations: 10.5 kB / 0.5205 GB, free: 33.74 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001609/0.3007, allocations: 41.09 kB / 0.5205 GB, free: 33.73 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002016/0.3009, allocations: 252.2 kB / 0.5208 GB, free: 33.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.948e-05/0.301, allocations: 17.75 kB / 0.5208 GB, free: 33.48 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.373e-05/0.301, allocations: 23.72 kB / 0.5208 GB, free: 33.47 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004252/0.3015, allocations: 268.5 kB / 0.5211 GB, free: 33.35 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.3015, allocations: 7.906 kB / 0.5211 GB, free: 33.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.856e-05/0.3015, allocations: 10.88 kB / 0.5211 GB, free: 33.33 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.331e-06/0.3015, allocations: 6.031 kB / 0.5211 GB, free: 33.33 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004264/0.302, allocations: 230.5 kB / 0.5213 GB, free: 33.26 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001132/0.3031, allocations: 0.7526 MB / 0.522 GB, free: 32.78 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004724/0.3036, allocations: 240.7 kB / 0.5223 GB, free: 32.68 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002289/0.3038, allocations: 141.2 kB / 0.5224 GB, free: 32.62 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.174e-05/0.3039, allocations: 3.031 kB / 0.5224 GB, free: 32.62 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.557e-05/0.3039, allocations: 38.5 kB / 0.5224 GB, free: 32.57 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 1.463e-06/0.3039, allocations: 0 / 0.5224 GB, free: 32.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.002554/0.3065, allocations: 1.439 MB / 0.5239 GB, free: 31.67 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.293e-05/0.3065, allocations: 58.25 kB / 0.5239 GB, free: 31.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001646/0.3067, allocations: 206.2 kB / 0.5241 GB, free: 31.46 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.779e-05/0.3067, allocations: 32.48 kB / 0.5241 GB, free: 31.43 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.829e-05/0.3068, allocations: 148.9 kB / 0.5243 GB, free: 31.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.251e-05/0.3068, allocations: 112.2 kB / 0.5244 GB, free: 31.21 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.031e-05/0.3069, allocations: 6.875 kB / 0.5244 GB, free: 31.21 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.556e-05/0.3069, allocations: 339.3 kB / 0.5247 GB, free: 30.88 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002117/0.3072, allocations: 116.8 kB / 0.5248 GB, free: 30.84 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000225/0.3074, allocations: 168.8 kB / 0.525 GB, free: 30.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003506/0.3077, allocations: 229.7 kB / 0.5252 GB, free: 30.63 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.3078, allocations: 6.406 kB / 0.5252 GB, free: 30.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006552/0.3084, allocations: 410.5 kB / 0.5256 GB, free: 30.44 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.3084, allocations: 9.562 kB / 0.5256 GB, free: 30.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.3085, allocations: 0 / 0.5256 GB, free: 30.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004225/0.3089, allocations: 173.4 kB / 0.5258 GB, free: 30.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002009/0.3091, allocations: 58.92 kB / 0.5258 GB, free: 30.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005408/0.3097, allocations: 0.7239 MB / 0.5265 GB, free: 29.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002476/0.3099, allocations: 56.03 kB / 0.5266 GB, free: 29.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.495e-05/0.3099, allocations: 11.19 kB / 0.5266 GB, free: 29.73 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (bearingFriction1.free,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * 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: 0 * Non-linear torn systems: 1 {1 13} Notification: Performance of prepare postOptimizeDAE: time 0.0001236/0.3101, allocations: 150.9 kB / 0.5267 GB, free: 29.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.895e-05/0.3101, allocations: 26.62 kB / 0.5268 GB, free: 29.58 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.224e-05/0.3102, allocations: 36.34 kB / 0.5268 GB, free: 29.55 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.3102, allocations: 2.844 kB / 0.5268 GB, free: 29.55 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.3102, allocations: 0 / 0.5268 GB, free: 29.55 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.3102, allocations: 7.375 kB / 0.5268 GB, free: 29.55 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001205/0.3114, allocations: 0.9186 MB / 0.5277 GB, free: 28.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.3115, allocations: 8.094 kB / 0.5277 GB, free: 28.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001987/0.3117, allocations: 49.2 kB / 0.5278 GB, free: 28.94 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002858/0.312, allocations: 148.8 kB / 0.5279 GB, free: 28.89 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.534e-05/0.312, allocations: 9.828 kB / 0.5279 GB, free: 28.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004449/0.3125, allocations: 0.6942 MB / 0.5286 GB, free: 28.28 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3125, allocations: 0 / 0.5286 GB, free: 28.28 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008516/0.3133, allocations: 0.5926 MB / 0.5292 GB, free: 27.95 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.568e-05/0.3134, allocations: 130.3 kB / 0.5293 GB, free: 27.82 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.712e-05/0.3135, allocations: 10.94 kB / 0.5293 GB, free: 27.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002403/0.3137, allocations: 43.53 kB / 0.5294 GB, free: 27.81 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001065/0.3138, allocations: 59.19 kB / 0.5294 GB, free: 27.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.145e-05/0.3139, allocations: 12.95 kB / 0.5294 GB, free: 27.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001007/0.314, allocations: 152.7 kB / 0.5296 GB, free: 27.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.314, allocations: 0 / 0.5296 GB, free: 27.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003218/0.3143, allocations: 77.12 kB / 0.5296 GB, free: 27.69 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * 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: 0 * Non-linear torn systems: 1 {1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006826/0.315, allocations: 356.5 kB / 0.53 GB, free: 27.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006041/0.3156, allocations: 312.2 kB / 0.5303 GB, free: 27.39 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3156, allocations: 0 / 0.5303 GB, free: 27.39 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002732/0.3159, allocations: 154.9 kB / 0.5304 GB, free: 27.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003723/0.3163, allocations: 41.17 kB / 0.5305 GB, free: 27.32 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001616/0.3179, allocations: 0.9847 MB / 0.5314 GB, free: 26.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000156/0.3181, allocations: 0.7556 MB / 0.5322 GB, free: 26.09 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.18e-05/0.3182, allocations: 25.59 kB / 0.5322 GB, free: 26.08 MB / 378.7 MB Notification: Performance of SimCode: time 4.51e-07/0.3182, allocations: 0 / 0.5322 GB, free: 26.08 MB / 378.7 MB Notification: Performance of Templates: time 0.005512/0.3237, allocations: 4.392 MB / 0.5365 GB, free: 25.64 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches