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.001219/0.001219, allocations: 109.8 kB / 17.78 MB, free: 5.266 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.001183/0.001183, allocations: 183.9 kB / 18.71 MB, free: 4.34 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.426/1.426, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.2124/0.2124, allocations: 44.18 MB / 336.8 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002127/0.002127, allocations: 59.91 kB / 470 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3727/0.3748, allocations: 60.82 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003543/0.3784, allocations: 2.701 MB / 0.521 GB, free: 1.395 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00175/0.3802, allocations: 0.9499 MB / 0.522 GB, free: 0.707 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002811/0.3805, allocations: 5.5 kB / 0.522 GB, free: 0.707 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000222/0.3807, allocations: 57.59 kB / 0.522 GB, free: 0.668 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002694/0.3811, allocations: 102.7 kB / 0.5221 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000607/0.3817, allocations: 141.1 kB / 0.5223 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005079/0.3822, allocations: 376.2 kB / 0.5226 GB, free: 332 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002359/0.3824, allocations: 90.81 kB / 0.5227 GB, free: 288 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002206/0.3827, allocations: 137 kB / 0.5228 GB, free: 224 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002222/0.3829, allocations: 140 kB / 0.523 GB, free: 156 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.974e-05/0.383, allocations: 24.41 kB / 0.523 GB, free: 156 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001545/0.3831, allocations: 43.94 kB / 0.523 GB, free: 152 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.021e-05/0.3832, allocations: 58.59 kB / 0.5231 GB, free: 112 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001658/0.3834, allocations: 163.8 kB / 0.5232 GB, free: 16 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006759/0.384, allocations: 365.3 kB / 0.5236 GB, free: 15.87 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.357e-06/0.3841, allocations: 0 / 0.5236 GB, free: 15.87 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3841, allocations: 3.938 kB / 0.5236 GB, free: 15.87 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.138e-06/0.3841, allocations: 1.156 kB / 0.5236 GB, free: 15.87 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.001042/0.3851, allocations: 0.6078 MB / 0.5242 GB, free: 15.36 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.3852, allocations: 9.938 kB / 0.5242 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.744e-05/0.3853, allocations: 69.91 kB / 0.5243 GB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002325/0.3855, allocations: 49.58 kB / 0.5243 GB, free: 15.28 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004235/0.3859, allocations: 271.5 kB / 0.5246 GB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.24e-05/0.386, allocations: 20.66 kB / 0.5246 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.971e-05/0.3861, allocations: 37.42 kB / 0.5246 GB, free: 15 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005204/0.3866, allocations: 306 kB / 0.5249 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.911e-05/0.3866, allocations: 14.66 kB / 0.5249 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.839e-05/0.3867, allocations: 10.84 kB / 0.5249 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.139e-05/0.3867, allocations: 8.25 kB / 0.525 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003325/0.387, allocations: 171.7 kB / 0.5251 GB, free: 14.77 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002196/0.3893, allocations: 1.331 MB / 0.5264 GB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004451/0.3897, allocations: 256.3 kB / 0.5267 GB, free: 13.53 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001128/0.3899, allocations: 81.36 kB / 0.5267 GB, free: 13.47 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.546e-05/0.3899, allocations: 11.25 kB / 0.5267 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.68e-05/0.3899, allocations: 38.44 kB / 0.5268 GB, free: 13.42 MB / 398.1 MB Notification: Performance of pre-optimization done (n=22): time 2.064e-06/0.3899, allocations: 0 / 0.5268 GB, free: 13.42 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005472/0.3905, allocations: 217 kB / 0.527 GB, free: 13.32 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.849e-05/0.3906, allocations: 161.5 kB / 0.5271 GB, free: 13.13 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002569/0.3909, allocations: 216.4 kB / 0.5274 GB, free: 12.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.663e-05/0.3909, allocations: 31.2 kB / 0.5274 GB, free: 12.95 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001359/0.391, allocations: 193.1 kB / 0.5276 GB, free: 12.79 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.783e-05/0.3911, allocations: 91.44 kB / 0.5277 GB, free: 12.71 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001068/0.3912, allocations: 69.73 kB / 0.5277 GB, free: 12.67 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.3914, allocations: 336.5 kB / 0.528 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001311/0.3915, allocations: 61.92 kB / 0.5281 GB, free: 12.32 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002232/0.3918, allocations: 214.6 kB / 0.5283 GB, free: 12.11 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003698/0.3921, allocations: 289.2 kB / 0.5286 GB, free: 11.86 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.3921, allocations: 1.344 kB / 0.5286 GB, free: 11.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0005393/0.3927, allocations: 327.4 kB / 0.5289 GB, free: 11.7 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.3927, allocations: 11.62 kB / 0.5289 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/0.3927, allocations: 4.5 kB / 0.5289 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.103e-05/0.3928, allocations: 7.125 kB / 0.5289 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003214/0.3931, allocations: 89.16 kB / 0.529 GB, free: 11.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.228e-05/0.3931, allocations: 7.25 kB / 0.529 GB, free: 11.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002021/0.3933, allocations: 37.98 kB / 0.529 GB, free: 11.65 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.404e-05/0.3934, allocations: 13.5 kB / 0.5291 GB, free: 11.65 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.0001633/0.3935, allocations: 159.8 kB / 0.5292 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00012/0.3937, allocations: 28.14 kB / 0.5292 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001812/0.3938, allocations: 87.89 kB / 0.5293 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.79e-06/0.3939, allocations: 4.125 kB / 0.5293 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.3939, allocations: 1.281 kB / 0.5293 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.3939, allocations: 1.031 kB / 0.5293 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006491/0.3945, allocations: 320.4 kB / 0.5296 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.3945, allocations: 1.406 kB / 0.5296 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003559/0.3949, allocations: 65 kB / 0.5297 GB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5e-06/0.3949, allocations: 2.156 kB / 0.5297 GB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.382e-05/0.395, allocations: 8.156 kB / 0.5297 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.968e-06/0.395, allocations: 6.125 kB / 0.5297 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.395, allocations: 1.094 kB / 0.5297 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005646/0.3955, allocations: 0.6304 MB / 0.5303 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.278e-05/0.3956, allocations: 104.8 kB / 0.5304 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.082e-05/0.3957, allocations: 11.47 kB / 0.5304 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002587/0.396, allocations: 6.375 kB / 0.5304 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.935e-05/0.396, allocations: 23.73 kB / 0.5305 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/0.396, allocations: 5.5 kB / 0.5305 GB, free: 10.41 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001388/0.3962, allocations: 155.1 kB / 0.5306 GB, free: 10.3 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3962, allocations: 0 / 0.5306 GB, free: 10.3 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005943/0.3968, allocations: 77.58 kB / 0.5307 GB, free: 10.29 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.0008569/0.3976, allocations: 1.181 MB / 0.5318 GB, free: 9.207 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004028/0.398, allocations: 189.5 kB / 0.532 GB, free: 9.129 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3981, allocations: 0.9375 kB / 0.532 GB, free: 9.129 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001114/0.3982, allocations: 76.34 kB / 0.5321 GB, free: 9.098 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008676/0.3991, allocations: 67.86 kB / 0.5322 GB, free: 9.059 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004332/0.4034, allocations: 3.54 MB / 0.5356 GB, free: 6.055 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004018/0.4039, allocations: 0.7698 MB / 0.5364 GB, free: 5.316 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001606/0.404, allocations: 33.08 kB / 0.5364 GB, free: 5.297 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001293/0.4042, allocations: 89.62 kB / 0.5365 GB, free: 5.223 MB / 398.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4042, allocations: 0 / 0.5365 GB, free: 5.223 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02966/0.4338, allocations: 5.365 MB / 0.5417 GB, free: 2.52 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.131/8.564, allocations: 3.312 kB / 0.5417 GB, free: 2.52 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