Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBraking.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: "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000953/0.000953, allocations: 197.4 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.237/1.237, allocations: 226.5 MB / 243.4 MB, free: 6.516 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007671/0.000767, allocations: 100.7 kB / 295.5 MB, free: 6.672 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3383/0.3383, allocations: 44.82 MB / 392.3 MB, free: 35.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000256/0.0002561, allocations: 11.98 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2883/0.2886, allocations: 62.94 MB / 0.5159 GB, free: 37.25 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.002172/0.2908, allocations: 2.51 MB / 0.5184 GB, free: 35.45 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001206/0.292, allocations: 1.009 MB / 0.5194 GB, free: 34.71 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001369/0.2922, allocations: 8.5 kB / 0.5194 GB, free: 34.71 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001319/0.2923, allocations: 46 kB / 0.5194 GB, free: 34.69 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001446/0.2925, allocations: 103.6 kB / 0.5195 GB, free: 34.61 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003457/0.2928, allocations: 137.8 kB / 0.5197 GB, free: 34.54 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002824/0.2931, allocations: 419.8 kB / 0.5201 GB, free: 34.32 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001561/0.2933, allocations: 87.03 kB / 0.5201 GB, free: 34.28 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001171/0.2934, allocations: 139.6 kB / 0.5203 GB, free: 34.23 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001508/0.2936, allocations: 158.8 kB / 0.5204 GB, free: 34.15 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.272e-05/0.2936, allocations: 16.75 kB / 0.5204 GB, free: 34.15 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.907e-05/0.2937, allocations: 35.62 kB / 0.5205 GB, free: 34.15 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.828e-05/0.2937, allocations: 56.97 kB / 0.5205 GB, free: 34.12 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001263/0.2939, allocations: 195.6 kB / 0.5207 GB, free: 34 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002151/0.2941, allocations: 304.8 kB / 0.521 GB, free: 33.92 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.2941, allocations: 0 / 0.521 GB, free: 33.92 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2941, allocations: 3.938 kB / 0.521 GB, free: 33.92 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.2941, allocations: 0 / 0.521 GB, free: 33.92 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.0007019/0.2948, allocations: 0.5889 MB / 0.5216 GB, free: 33.43 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.2949, allocations: 8.844 kB / 0.5216 GB, free: 33.43 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.511e-05/0.2949, allocations: 80.53 kB / 0.5217 GB, free: 33.36 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002409/0.2952, allocations: 62.73 kB / 0.5217 GB, free: 33.34 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000217/0.2954, allocations: 285.4 kB / 0.522 GB, free: 33.08 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.882e-05/0.2955, allocations: 27.88 kB / 0.522 GB, free: 33.07 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.528e-05/0.2955, allocations: 39.66 kB / 0.5221 GB, free: 33.05 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004654/0.296, allocations: 365.4 kB / 0.5224 GB, free: 32.85 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.322e-05/0.296, allocations: 10.88 kB / 0.5224 GB, free: 32.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.474e-05/0.296, allocations: 18.91 kB / 0.5224 GB, free: 32.83 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.704e-06/0.2961, allocations: 8.844 kB / 0.5225 GB, free: 32.83 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003639/0.2964, allocations: 223 kB / 0.5227 GB, free: 32.77 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001598/0.298, allocations: 1.572 MB / 0.5242 GB, free: 31.54 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000447/0.2985, allocations: 314.4 kB / 0.5245 GB, free: 31.32 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001319/0.2986, allocations: 108.2 kB / 0.5246 GB, free: 31.25 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.973e-05/0.2987, allocations: 6.828 kB / 0.5246 GB, free: 31.24 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.846e-05/0.2987, allocations: 41.5 kB / 0.5247 GB, free: 31.2 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 1.473e-06/0.2987, allocations: 0 / 0.5247 GB, free: 31.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=26): time 0.0005666/0.2993, allocations: 275.7 kB / 0.5249 GB, free: 31.08 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.469e-05/0.2993, allocations: 182.8 kB / 0.5251 GB, free: 30.86 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001506/0.2995, allocations: 240.8 kB / 0.5253 GB, free: 30.71 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.369e-05/0.2995, allocations: 32.3 kB / 0.5254 GB, free: 30.68 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.862e-05/0.2996, allocations: 215.9 kB / 0.5256 GB, free: 30.49 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.851e-05/0.2996, allocations: 107.5 kB / 0.5257 GB, free: 30.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.269e-05/0.2997, allocations: 6.812 kB / 0.5257 GB, free: 30.4 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.023e-05/0.2997, allocations: 338.3 kB / 0.526 GB, free: 30.08 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001537/0.2999, allocations: 83.94 kB / 0.5261 GB, free: 30.05 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000193/0.3001, allocations: 248.5 kB / 0.5263 GB, free: 29.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003512/0.3004, allocations: 364.8 kB / 0.5267 GB, free: 29.49 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.3005, allocations: 2.875 kB / 0.5267 GB, free: 29.49 MB / 378.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005021/0.301, allocations: 382.3 kB / 0.527 GB, free: 29.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.301, allocations: 5.812 kB / 0.527 GB, free: 29.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.301, allocations: 5.875 kB / 0.527 GB, free: 29.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.301, allocations: 8.656 kB / 0.527 GB, free: 29.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003055/0.3013, allocations: 109.4 kB / 0.5271 GB, free: 29.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.3013, allocations: 11.5 kB / 0.5272 GB, free: 29.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001921/0.3015, allocations: 49.62 kB / 0.5272 GB, free: 29.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.292e-05/0.3016, allocations: 19.19 kB / 0.5272 GB, free: 29.27 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (52): * Single equations (assignments): 52 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001076/0.3017, allocations: 156.8 kB / 0.5274 GB, free: 29.13 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001177/0.3018, allocations: 28.72 kB / 0.5274 GB, free: 29.11 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001411/0.302, allocations: 93.22 kB / 0.5275 GB, free: 29.05 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.302, allocations: 3.094 kB / 0.5275 GB, free: 29.05 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.302, allocations: 7.219 kB / 0.5275 GB, free: 29.05 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.593e-06/0.302, allocations: 7.172 kB / 0.5275 GB, free: 29.04 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005378/0.3025, allocations: 354.8 kB / 0.5278 GB, free: 28.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3025, allocations: 2.562 kB / 0.5278 GB, free: 28.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003675/0.3029, allocations: 79.08 kB / 0.5279 GB, free: 28.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.3029, allocations: 2.562 kB / 0.5279 GB, free: 28.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.153e-05/0.303, allocations: 9.156 kB / 0.5279 GB, free: 28.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.303, allocations: 2.719 kB / 0.5279 GB, free: 28.77 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.303, allocations: 3.281 kB / 0.5279 GB, free: 28.77 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005517/0.3035, allocations: 0.7718 MB / 0.5287 GB, free: 28.15 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.453e-05/0.3036, allocations: 107.9 kB / 0.5288 GB, free: 28.04 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.704e-05/0.3036, allocations: 6.781 kB / 0.5288 GB, free: 28.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002894/0.3039, allocations: 9.562 kB / 0.5288 GB, free: 28.03 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.139e-05/0.304, allocations: 30.8 kB / 0.5288 GB, free: 28.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.231e-05/0.304, allocations: 8.219 kB / 0.5288 GB, free: 28.02 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.766e-05/0.3041, allocations: 164 kB / 0.529 GB, free: 27.91 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3041, allocations: 0 / 0.529 GB, free: 27.91 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000523/0.3046, allocations: 99.31 kB / 0.5291 GB, free: 27.89 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,inertia6.w,inverseSpeedDependentTorque.phi,eddyCurrentTorque.phi,inertia5.w,heatCapacitor.T) * 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 (27): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006567/0.3053, allocations: 1.306 MB / 0.5304 GB, free: 26.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003685/0.3057, allocations: 243.2 kB / 0.5306 GB, free: 26.67 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3057, allocations: 0 / 0.5306 GB, free: 26.67 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001425/0.3058, allocations: 96.88 kB / 0.5307 GB, free: 26.64 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008597/0.3067, allocations: 63.58 kB / 0.5308 GB, free: 26.62 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002835/0.3096, allocations: 2.709 MB / 0.5334 GB, free: 24.77 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002017/0.3098, allocations: 0.7994 MB / 0.5342 GB, free: 24.05 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000133/0.3099, allocations: 118.4 kB / 0.5343 GB, free: 23.97 MB / 378.7 MB Notification: Performance of SimCode: time 4.71e-07/0.3099, allocations: 0 / 0.5343 GB, free: 23.97 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.687/2.997, allocations: 4.866 MB / 0.539 GB, free: 23.46 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches