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.001534/0.001534, allocations: 116.1 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002363/0.002364, allocations: 200.7 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.419/1.419, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2299/0.2299, allocations: 46.11 MB / 344.3 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 75.88 kB / 480.8 MB, free: 4.547 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3987/0.4002, allocations: 62.43 MB / 0.5305 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004427/0.4047, allocations: 3.033 MB / 0.5335 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001987/0.4067, allocations: 1.08 MB / 0.5345 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002322/0.4069, allocations: 10.66 kB / 0.5345 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002146/0.4072, allocations: 62.33 kB / 0.5346 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002613/0.4075, allocations: 125.6 kB / 0.5347 GB, free: 9.938 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006058/0.4081, allocations: 170.8 kB / 0.5349 GB, free: 9.801 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005437/0.4086, allocations: 459.1 kB / 0.5353 GB, free: 9.527 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002364/0.4089, allocations: 116.6 kB / 0.5354 GB, free: 9.457 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001978/0.4091, allocations: 161.7 kB / 0.5356 GB, free: 9.371 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002513/0.4093, allocations: 184.9 kB / 0.5357 GB, free: 9.246 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.472e-05/0.4094, allocations: 30.25 kB / 0.5358 GB, free: 9.246 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001492/0.4096, allocations: 50.39 kB / 0.5358 GB, free: 9.238 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.148e-05/0.4097, allocations: 74.73 kB / 0.5359 GB, free: 9.176 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001987/0.4099, allocations: 193 kB / 0.5361 GB, free: 9.055 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005798/0.4104, allocations: 440.7 kB / 0.5365 GB, free: 8.754 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.4105, allocations: 0 / 0.5365 GB, free: 8.754 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.396e-06/0.4105, allocations: 0 / 0.5365 GB, free: 8.754 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.127e-06/0.4105, allocations: 4.969 kB / 0.5365 GB, free: 8.75 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.001147/0.4116, allocations: 0.6687 MB / 0.5372 GB, free: 8.16 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.4117, allocations: 9 kB / 0.5372 GB, free: 8.16 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.437e-05/0.4118, allocations: 70.25 kB / 0.5372 GB, free: 8.094 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003027/0.4121, allocations: 67.48 kB / 0.5373 GB, free: 8.062 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004704/0.4126, allocations: 306.6 kB / 0.5376 GB, free: 7.762 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.346e-05/0.4126, allocations: 32.38 kB / 0.5376 GB, free: 7.746 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.397e-05/0.4127, allocations: 47.23 kB / 0.5377 GB, free: 7.723 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000598/0.4133, allocations: 352 kB / 0.538 GB, free: 7.484 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.984e-05/0.4134, allocations: 11.44 kB / 0.538 GB, free: 7.477 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.639e-05/0.4134, allocations: 15.28 kB / 0.538 GB, free: 7.465 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/0.4134, allocations: 8.75 kB / 0.538 GB, free: 7.465 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004627/0.4139, allocations: 220.4 kB / 0.5382 GB, free: 7.363 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002384/0.4163, allocations: 1.576 MB / 0.5398 GB, free: 5.949 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006184/0.4169, allocations: 307.8 kB / 0.5401 GB, free: 5.711 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001697/0.4171, allocations: 97.05 kB / 0.5402 GB, free: 5.633 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3e-05/0.4171, allocations: 11 kB / 0.5402 GB, free: 5.625 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.252e-05/0.4172, allocations: 42.84 kB / 0.5402 GB, free: 5.578 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 2.004e-06/0.4172, allocations: 3.938 kB / 0.5402 GB, free: 5.574 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006828/0.4179, allocations: 267.2 kB / 0.5405 GB, free: 5.434 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001122/0.418, allocations: 186.7 kB / 0.5407 GB, free: 5.211 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002633/0.4183, allocations: 240.1 kB / 0.5409 GB, free: 5.039 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.519e-05/0.4183, allocations: 32.23 kB / 0.5409 GB, free: 5.004 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002242/0.4185, allocations: 215.1 kB / 0.5411 GB, free: 4.809 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.945e-05/0.4186, allocations: 119.3 kB / 0.5412 GB, free: 4.703 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001248/0.4188, allocations: 81.7 kB / 0.5413 GB, free: 4.641 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001679/0.4189, allocations: 345.6 kB / 0.5416 GB, free: 4.301 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001885/0.4191, allocations: 81.27 kB / 0.5417 GB, free: 4.266 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003201/0.4195, allocations: 247 kB / 0.542 GB, free: 4.012 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000514/0.42, allocations: 364.2 kB / 0.5423 GB, free: 3.688 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.633e-06/0.42, allocations: 1.438 kB / 0.5423 GB, free: 3.688 MB / 398.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006876/0.4207, allocations: 383.3 kB / 0.5427 GB, free: 3.488 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.218e-05/0.4207, allocations: 8.906 kB / 0.5427 GB, free: 3.488 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.4207, allocations: 5.5 kB / 0.5427 GB, free: 3.488 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.571e-05/0.4208, allocations: 12.25 kB / 0.5427 GB, free: 3.484 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004032/0.4212, allocations: 105.5 kB / 0.5428 GB, free: 3.461 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2e-05/0.4212, allocations: 11.95 kB / 0.5428 GB, free: 3.457 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002448/0.4215, allocations: 38.08 kB / 0.5428 GB, free: 3.434 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.708e-05/0.4215, allocations: 20.5 kB / 0.5429 GB, free: 3.43 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.0001754/0.4217, allocations: 166.7 kB / 0.543 GB, free: 3.273 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001387/0.4218, allocations: 37.88 kB / 0.5431 GB, free: 3.25 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002011/0.422, allocations: 97.61 kB / 0.5431 GB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.508e-05/0.4221, allocations: 4.156 kB / 0.5432 GB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.039e-05/0.4221, allocations: 6 kB / 0.5432 GB, free: 3.164 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.4221, allocations: 2.094 kB / 0.5432 GB, free: 3.164 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007272/0.4228, allocations: 354.3 kB / 0.5435 GB, free: 2.848 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.4228, allocations: 1.094 kB / 0.5435 GB, free: 2.848 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004434/0.4233, allocations: 84.17 kB / 0.5436 GB, free: 2.828 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.4233, allocations: 2.906 kB / 0.5436 GB, free: 2.828 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.521e-05/0.4233, allocations: 7 kB / 0.5436 GB, free: 2.824 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.105e-06/0.4233, allocations: 2.5 kB / 0.5436 GB, free: 2.824 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.4234, allocations: 2.625 kB / 0.5436 GB, free: 2.824 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008301/0.4242, allocations: 0.7848 MB / 0.5444 GB, free: 2.168 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.057e-05/0.4243, allocations: 105.8 kB / 0.5445 GB, free: 2.055 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.326e-05/0.4243, allocations: 12.16 kB / 0.5445 GB, free: 2.047 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003155/0.4247, allocations: 8.156 kB / 0.5445 GB, free: 2.043 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.59e-05/0.4247, allocations: 21.19 kB / 0.5445 GB, free: 2.031 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.936e-05/0.4248, allocations: 10.16 kB / 0.5445 GB, free: 2.027 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001715/0.4249, allocations: 168.4 kB / 0.5447 GB, free: 1.91 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4249, allocations: 0 / 0.5447 GB, free: 1.91 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006513/0.4256, allocations: 102.2 kB / 0.5448 GB, free: 1.883 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.001106/0.4267, allocations: 1.304 MB / 0.546 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005586/0.4273, allocations: 231 kB / 0.5463 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.4273, allocations: 2.312 kB / 0.5463 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002125/0.4275, allocations: 95.92 kB / 0.5464 GB, free: 0.582 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00094/0.4285, allocations: 87.39 kB / 0.5464 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005119/0.4336, allocations: 4.099 MB / 0.5504 GB, free: 12.36 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004336/0.4341, allocations: 0.7911 MB / 0.5512 GB, free: 11.55 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000222/0.4343, allocations: 34.97 kB / 0.5512 GB, free: 11.51 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001855/0.4345, allocations: 107.4 kB / 0.5514 GB, free: 11.41 MB / 414.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4345, allocations: 0 / 0.5514 GB, free: 11.41 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02723/0.4617, allocations: 6.389 MB / 0.5576 GB, free: 5.121 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.283/8.744, allocations: 19.55 kB / 0.5576 GB, free: 5.102 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking_res.csv","/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