Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001123/0.001123, allocations: 113.8 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001772/0.001772, allocations: 179.9 kB / 18.71 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.448/1.448, allocations: 222.9 MB / 242.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.236/0.236, allocations: 44.19 MB / 336.8 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 63.89 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3525/0.3539, allocations: 60.82 MB / 0.5184 GB, free: 3.141 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003972/0.3579, allocations: 2.694 MB / 0.521 GB, free: 1.254 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001776/0.3597, allocations: 0.9467 MB / 0.522 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003172/0.36, allocations: 5.531 kB / 0.522 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002477/0.3603, allocations: 52.78 kB / 0.522 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003844/0.3607, allocations: 110.7 kB / 0.5221 GB, free: 464 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006835/0.3614, allocations: 137 kB / 0.5223 GB, free: 388 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000611/0.3621, allocations: 380.8 kB / 0.5226 GB, free: 188 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002368/0.3623, allocations: 93.31 kB / 0.5227 GB, free: 140 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002277/0.3625, allocations: 137.6 kB / 0.5228 GB, free: 76 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002246/0.3628, allocations: 144.4 kB / 0.523 GB, free: 4 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.133e-05/0.3628, allocations: 24.34 kB / 0.523 GB, free: 4 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001874/0.363, allocations: 43.16 kB / 0.523 GB, free: 0 / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.452e-05/0.3631, allocations: 63.08 kB / 0.5231 GB, free: 15.95 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002062/0.3633, allocations: 160 kB / 0.5233 GB, free: 15.86 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006556/0.364, allocations: 369 kB / 0.5236 GB, free: 15.72 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.057e-06/0.364, allocations: 1.219 kB / 0.5236 GB, free: 15.72 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.364, allocations: 3.938 kB / 0.5236 GB, free: 15.71 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.082e-05/0.364, allocations: 0 / 0.5236 GB, free: 15.71 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001163/0.3652, allocations: 0.604 MB / 0.5242 GB, free: 15.21 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/0.3653, allocations: 9.938 kB / 0.5242 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.39e-05/0.3653, allocations: 63.36 kB / 0.5243 GB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002375/0.3656, allocations: 48.27 kB / 0.5243 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004771/0.3661, allocations: 278.4 kB / 0.5246 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.188e-05/0.3661, allocations: 21.78 kB / 0.5246 GB, free: 14.87 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.75e-05/0.3662, allocations: 37.45 kB / 0.5246 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005227/0.3667, allocations: 300.6 kB / 0.5249 GB, free: 14.69 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.631e-05/0.3668, allocations: 11.25 kB / 0.5249 GB, free: 14.68 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.752e-05/0.3668, allocations: 11.52 kB / 0.5249 GB, free: 14.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.996e-06/0.3668, allocations: 8.844 kB / 0.525 GB, free: 14.68 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003346/0.3671, allocations: 174.6 kB / 0.5251 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00223/0.3694, allocations: 1.335 MB / 0.5264 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004785/0.3699, allocations: 248.7 kB / 0.5267 GB, free: 13.39 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001565/0.3701, allocations: 80.7 kB / 0.5267 GB, free: 13.33 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.477e-05/0.3701, allocations: 3.641 kB / 0.5267 GB, free: 13.33 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.005e-05/0.3701, allocations: 42.33 kB / 0.5268 GB, free: 13.28 MB / 398.1 MB Notification: Performance of pre-optimization done (n=22): time 1.934e-06/0.3701, allocations: 0 / 0.5268 GB, free: 13.28 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.0006044/0.3708, allocations: 220.8 kB / 0.527 GB, free: 13.18 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.313e-05/0.3709, allocations: 161.5 kB / 0.5271 GB, free: 12.99 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002525/0.3711, allocations: 212.8 kB / 0.5273 GB, free: 12.85 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.66e-05/0.3712, allocations: 35.05 kB / 0.5274 GB, free: 12.81 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001479/0.3713, allocations: 194.1 kB / 0.5276 GB, free: 12.64 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.079e-05/0.3714, allocations: 85.97 kB / 0.5276 GB, free: 12.58 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000103/0.3715, allocations: 69.72 kB / 0.5277 GB, free: 12.53 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.3717, allocations: 332.5 kB / 0.528 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001344/0.3718, allocations: 67.36 kB / 0.5281 GB, free: 12.19 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002364/0.372, allocations: 207.8 kB / 0.5283 GB, free: 11.98 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003989/0.3725, allocations: 301.1 kB / 0.5286 GB, free: 11.71 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.3725, allocations: 1.375 kB / 0.5286 GB, free: 11.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0005478/0.373, allocations: 318.8 kB / 0.5289 GB, free: 11.57 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.3731, allocations: 11.88 kB / 0.5289 GB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/0.3731, allocations: 5.828 kB / 0.5289 GB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.487e-05/0.3731, allocations: 6.969 kB / 0.5289 GB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003274/0.3734, allocations: 91.02 kB / 0.529 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.649e-05/0.3735, allocations: 11.72 kB / 0.529 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002203/0.3737, allocations: 34.16 kB / 0.529 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.053e-05/0.3737, allocations: 18.25 kB / 0.5291 GB, free: 11.52 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (44): * Single equations (assignments): 44 * 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.0001919/0.3739, allocations: 157.8 kB / 0.5292 GB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001418/0.3741, allocations: 27.7 kB / 0.5292 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002232/0.3743, allocations: 84.09 kB / 0.5293 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.235e-06/0.3743, allocations: 8.109 kB / 0.5293 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/0.3743, allocations: 1.438 kB / 0.5293 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.053e-05/0.3744, allocations: 2.984 kB / 0.5293 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007304/0.3751, allocations: 320.5 kB / 0.5296 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.3751, allocations: 5.344 kB / 0.5296 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003337/0.3755, allocations: 68.81 kB / 0.5297 GB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.877e-06/0.3755, allocations: 2.812 kB / 0.5297 GB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.617e-05/0.3755, allocations: 2.938 kB / 0.5297 GB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.49e-06/0.3755, allocations: 7.125 kB / 0.5297 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.3755, allocations: 1.688 kB / 0.5297 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006464/0.3762, allocations: 0.6351 MB / 0.5303 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001032/0.3763, allocations: 99.75 kB / 0.5304 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.954e-05/0.3764, allocations: 15.33 kB / 0.5304 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002733/0.3766, allocations: 6.188 kB / 0.5305 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.55e-05/0.3767, allocations: 11.83 kB / 0.5305 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.727e-05/0.3767, allocations: 10.56 kB / 0.5305 GB, free: 10.29 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001555/0.3769, allocations: 158.2 kB / 0.5306 GB, free: 10.18 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3769, allocations: 96 / 0.5306 GB, free: 10.18 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006218/0.3775, allocations: 82.42 kB / 0.5307 GB, free: 10.16 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 11 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.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 (23): * Single equations (assignments): 23 * 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.0009516/0.3785, allocations: 1.176 MB / 0.5319 GB, free: 9.082 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004152/0.3789, allocations: 192.6 kB / 0.532 GB, free: 9.004 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.3789, allocations: 0 / 0.532 GB, free: 9.004 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001209/0.3791, allocations: 76.38 kB / 0.5321 GB, free: 8.973 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000875/0.3799, allocations: 56.33 kB / 0.5322 GB, free: 8.941 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00481/0.3848, allocations: 3.548 MB / 0.5356 GB, free: 5.93 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004668/0.3853, allocations: 0.7689 MB / 0.5364 GB, free: 5.191 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001855/0.3855, allocations: 29.38 kB / 0.5364 GB, free: 5.176 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001653/0.3857, allocations: 93.72 kB / 0.5365 GB, free: 5.098 MB / 398.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3857, allocations: 0 / 0.5365 GB, free: 5.098 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02988/0.4156, allocations: 5.373 MB / 0.5417 GB, free: 2.391 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.075/8.491, allocations: 4.125 kB / 0.5417 GB, free: 2.391 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches