Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001519/0.00152, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001914/0.001914, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.4 MB / 246.9 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2176/0.2176, allocations: 46.1 MB / 344.3 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001643/0.001643, allocations: 75.88 kB / 480.8 MB, free: 4.613 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3196/0.3213, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004639/0.326, allocations: 3.037 MB / 0.5335 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002066/0.3281, allocations: 1.072 MB / 0.5345 GB, free: 10.15 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003433/0.3284, allocations: 9.438 kB / 0.5345 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002218/0.3287, allocations: 58.27 kB / 0.5346 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003365/0.329, allocations: 128.6 kB / 0.5347 GB, free: 9.98 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000663/0.3297, allocations: 169.8 kB / 0.5349 GB, free: 9.844 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005596/0.3303, allocations: 454 kB / 0.5353 GB, free: 9.574 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002366/0.3305, allocations: 121.9 kB / 0.5354 GB, free: 9.5 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003199/0.3309, allocations: 164.2 kB / 0.5356 GB, free: 9.41 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002954/0.3312, allocations: 182 kB / 0.5357 GB, free: 9.289 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.076e-05/0.3312, allocations: 29.41 kB / 0.5358 GB, free: 9.289 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001769/0.3314, allocations: 50.48 kB / 0.5358 GB, free: 9.281 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.83e-05/0.3315, allocations: 79.09 kB / 0.5359 GB, free: 9.215 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002562/0.3318, allocations: 193.3 kB / 0.5361 GB, free: 9.094 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006519/0.3324, allocations: 438.9 kB / 0.5365 GB, free: 8.793 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3324, allocations: 5.25 kB / 0.5365 GB, free: 8.789 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3325, allocations: 4 kB / 0.5365 GB, free: 8.785 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.214e-05/0.3325, allocations: 0 / 0.5365 GB, free: 8.785 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001373/0.3339, allocations: 0.6535 MB / 0.5371 GB, free: 8.211 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/0.3339, allocations: 13.89 kB / 0.5372 GB, free: 8.207 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001076/0.334, allocations: 73.84 kB / 0.5372 GB, free: 8.137 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003548/0.3344, allocations: 64.14 kB / 0.5373 GB, free: 8.109 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005296/0.3349, allocations: 294 kB / 0.5376 GB, free: 7.82 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.597e-05/0.335, allocations: 31.59 kB / 0.5376 GB, free: 7.805 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.069e-05/0.3351, allocations: 48.14 kB / 0.5376 GB, free: 7.781 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007764/0.3359, allocations: 359.2 kB / 0.538 GB, free: 7.535 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.458e-05/0.3359, allocations: 7.25 kB / 0.538 GB, free: 7.531 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.343e-05/0.336, allocations: 11.16 kB / 0.538 GB, free: 7.523 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.408e-05/0.336, allocations: 9.656 kB / 0.538 GB, free: 7.523 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004734/0.3365, allocations: 216 kB / 0.5382 GB, free: 7.426 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002458/0.3389, allocations: 1.587 MB / 0.5398 GB, free: 6 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006063/0.3396, allocations: 303.3 kB / 0.5401 GB, free: 5.766 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002328/0.3398, allocations: 93.11 kB / 0.5401 GB, free: 5.691 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.271e-05/0.3398, allocations: 3.125 kB / 0.5401 GB, free: 5.691 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.267e-05/0.3399, allocations: 49.61 kB / 0.5402 GB, free: 5.637 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 1.974e-06/0.3399, allocations: 0 / 0.5402 GB, free: 5.637 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007112/0.3406, allocations: 263.1 kB / 0.5404 GB, free: 5.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001554/0.3408, allocations: 191.8 kB / 0.5406 GB, free: 5.273 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002651/0.3411, allocations: 240.2 kB / 0.5409 GB, free: 5.102 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.383e-05/0.3411, allocations: 30.64 kB / 0.5409 GB, free: 5.066 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00014/0.3412, allocations: 219.7 kB / 0.5411 GB, free: 4.867 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.605e-05/0.3413, allocations: 106.5 kB / 0.5412 GB, free: 4.773 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001216/0.3415, allocations: 74.25 kB / 0.5413 GB, free: 4.719 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.3416, allocations: 341.5 kB / 0.5416 GB, free: 4.383 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001893/0.3418, allocations: 80.83 kB / 0.5417 GB, free: 4.348 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002815/0.3421, allocations: 252 kB / 0.5419 GB, free: 4.09 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005043/0.3426, allocations: 362.9 kB / 0.5423 GB, free: 3.766 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.3426, allocations: 10.59 kB / 0.5423 GB, free: 3.758 MB / 398.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006612/0.3433, allocations: 379.3 kB / 0.5426 GB, free: 3.562 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.3433, allocations: 8 kB / 0.5426 GB, free: 3.562 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.31e-05/0.3433, allocations: 6.188 kB / 0.5426 GB, free: 3.562 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.407e-05/0.3434, allocations: 10.83 kB / 0.5427 GB, free: 3.559 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000358/0.3437, allocations: 106.5 kB / 0.5428 GB, free: 3.535 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.838e-05/0.3438, allocations: 16.42 kB / 0.5428 GB, free: 3.527 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002569/0.344, allocations: 44.84 kB / 0.5428 GB, free: 3.496 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.802e-05/0.3441, allocations: 16.69 kB / 0.5428 GB, free: 3.496 MB / 398.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002868/0.3444, allocations: 170.6 kB / 0.543 GB, free: 3.336 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001451/0.3445, allocations: 25.88 kB / 0.543 GB, free: 3.324 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001939/0.3447, allocations: 98.94 kB / 0.5431 GB, free: 3.242 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.785e-06/0.3447, allocations: 7.531 kB / 0.5431 GB, free: 3.238 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.717e-06/0.3447, allocations: 2.219 kB / 0.5431 GB, free: 3.238 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.3447, allocations: 1 kB / 0.5431 GB, free: 3.238 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007471/0.3455, allocations: 354.5 kB / 0.5435 GB, free: 2.922 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.3455, allocations: 1.156 kB / 0.5435 GB, free: 2.922 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004102/0.3459, allocations: 79.52 kB / 0.5435 GB, free: 2.906 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.753e-06/0.3459, allocations: 7.25 kB / 0.5435 GB, free: 2.902 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.633e-05/0.346, allocations: 7.375 kB / 0.5435 GB, free: 2.898 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.346, allocations: 3.406 kB / 0.5436 GB, free: 2.898 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.346, allocations: 5.062 kB / 0.5436 GB, free: 2.895 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007595/0.3468, allocations: 0.7701 MB / 0.5443 GB, free: 2.25 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.906e-05/0.3469, allocations: 105.6 kB / 0.5444 GB, free: 2.137 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.641e-05/0.3469, allocations: 11.23 kB / 0.5444 GB, free: 2.129 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003225/0.3473, allocations: 4.406 kB / 0.5444 GB, free: 2.129 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.658e-05/0.3473, allocations: 25.75 kB / 0.5444 GB, free: 2.113 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.846e-05/0.3473, allocations: 14.47 kB / 0.5445 GB, free: 2.105 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001574/0.3475, allocations: 171.8 kB / 0.5446 GB, free: 1.984 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3475, allocations: 1.219 kB / 0.5446 GB, free: 1.984 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006468/0.3482, allocations: 94.19 kB / 0.5447 GB, free: 1.965 MB / 398.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001017/0.3492, allocations: 1.3 MB / 0.546 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004839/0.3497, allocations: 241.5 kB / 0.5462 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.3497, allocations: 4.062 kB / 0.5462 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001744/0.3499, allocations: 96.92 kB / 0.5463 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009672/0.3509, allocations: 85.36 kB / 0.5464 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005353/0.3562, allocations: 4.068 MB / 0.5504 GB, free: 12.5 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004232/0.3567, allocations: 0.7912 MB / 0.5511 GB, free: 11.69 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000171/0.3569, allocations: 30.97 kB / 0.5512 GB, free: 11.66 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001623/0.357, allocations: 115.4 kB / 0.5513 GB, free: 11.54 MB / 414.1 MB Notification: Performance of SimCode: time 8.22e-07/0.357, allocations: 192 / 0.5513 GB, free: 11.54 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02632/0.3834, allocations: 6.484 MB / 0.5576 GB, free: 5.168 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.043/8.426, allocations: 19.5 kB / 0.5576 GB, free: 5.148 MB / 414.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches