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.001228/0.001228, allocations: 114.4 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.001282/0.001282, allocations: 187.8 kB / 18.71 MB, free: 4.344 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.412/1.412, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.2182/0.2182, allocations: 44.19 MB / 336.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 63.89 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3418/0.3432, allocations: 60.81 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.00354/0.3468, allocations: 2.713 MB / 0.521 GB, free: 1.387 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001739/0.3485, allocations: 0.9419 MB / 0.522 GB, free: 0.707 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002408/0.3488, allocations: 13.09 kB / 0.522 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001763/0.349, allocations: 53.69 kB / 0.522 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001989/0.3492, allocations: 101.9 kB / 0.5221 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005136/0.3497, allocations: 140.2 kB / 0.5223 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004208/0.3502, allocations: 372.5 kB / 0.5226 GB, free: 332 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001963/0.3504, allocations: 93.31 kB / 0.5227 GB, free: 284 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001584/0.3505, allocations: 137.7 kB / 0.5228 GB, free: 220 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001985/0.3507, allocations: 137 kB / 0.523 GB, free: 156 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.393e-05/0.3508, allocations: 24.59 kB / 0.523 GB, free: 156 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001286/0.3509, allocations: 46.39 kB / 0.523 GB, free: 148 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.969e-05/0.351, allocations: 67.92 kB / 0.5231 GB, free: 100 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001339/0.3511, allocations: 162.4 kB / 0.5232 GB, free: 4 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004522/0.3516, allocations: 359.8 kB / 0.5236 GB, free: 15.87 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.044e-06/0.3516, allocations: 9.094 kB / 0.5236 GB, free: 15.86 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3516, allocations: 3.938 kB / 0.5236 GB, free: 15.86 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.919e-06/0.3516, allocations: 0 / 0.5236 GB, free: 15.86 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.0008887/0.3525, allocations: 0.5856 MB / 0.5242 GB, free: 15.37 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.3526, allocations: 10.72 kB / 0.5242 GB, free: 15.37 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.686e-05/0.3526, allocations: 71.17 kB / 0.5242 GB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002046/0.3529, allocations: 51.86 kB / 0.5243 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003844/0.3533, allocations: 263.4 kB / 0.5245 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.237e-05/0.3533, allocations: 27.78 kB / 0.5246 GB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.654e-05/0.3533, allocations: 34.72 kB / 0.5246 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005128/0.3539, allocations: 310.2 kB / 0.5249 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.527e-05/0.3539, allocations: 6.031 kB / 0.5249 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.749e-05/0.3539, allocations: 10.75 kB / 0.5249 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.3539, allocations: 7.578 kB / 0.5249 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003363/0.3543, allocations: 178.6 kB / 0.5251 GB, free: 14.77 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001921/0.3562, allocations: 1.331 MB / 0.5264 GB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004157/0.3567, allocations: 257 kB / 0.5266 GB, free: 13.54 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001173/0.3568, allocations: 77.23 kB / 0.5267 GB, free: 13.48 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.307e-05/0.3568, allocations: 11.62 kB / 0.5267 GB, free: 13.47 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.573e-05/0.3568, allocations: 41.77 kB / 0.5268 GB, free: 13.42 MB / 398.1 MB Notification: Performance of pre-optimization done (n=22): time 1.332e-06/0.3569, allocations: 0 / 0.5268 GB, free: 13.42 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.000483/0.3573, allocations: 212.9 kB / 0.527 GB, free: 13.33 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.933e-05/0.3574, allocations: 158.1 kB / 0.5271 GB, free: 13.14 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001937/0.3576, allocations: 212.5 kB / 0.5273 GB, free: 13 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.182e-05/0.3577, allocations: 31.08 kB / 0.5274 GB, free: 12.96 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001137/0.3578, allocations: 192.5 kB / 0.5275 GB, free: 12.8 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.19e-05/0.3579, allocations: 94.67 kB / 0.5276 GB, free: 12.73 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.691e-05/0.358, allocations: 69.64 kB / 0.5277 GB, free: 12.68 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.3581, allocations: 332.3 kB / 0.528 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001126/0.3582, allocations: 63.77 kB / 0.5281 GB, free: 12.34 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002033/0.3584, allocations: 208.5 kB / 0.5283 GB, free: 12.13 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003267/0.3588, allocations: 300.2 kB / 0.5286 GB, free: 11.87 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.3588, allocations: 1.375 kB / 0.5286 GB, free: 11.87 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004666/0.3592, allocations: 315.8 kB / 0.5289 GB, free: 11.72 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.3593, allocations: 14.22 kB / 0.5289 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.3593, allocations: 5.203 kB / 0.5289 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.229e-05/0.3593, allocations: 6.969 kB / 0.5289 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002952/0.3596, allocations: 89.5 kB / 0.529 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.671e-05/0.3596, allocations: 12.73 kB / 0.529 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001948/0.3598, allocations: 29.78 kB / 0.529 GB, free: 11.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.567e-05/0.3599, allocations: 18.94 kB / 0.529 GB, free: 11.68 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.0001392/0.36, allocations: 148.8 kB / 0.5292 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001126/0.3601, allocations: 28.73 kB / 0.5292 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001776/0.3603, allocations: 100.7 kB / 0.5293 GB, free: 11.44 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.3603, allocations: 4.125 kB / 0.5293 GB, free: 11.44 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.3603, allocations: 0 / 0.5293 GB, free: 11.44 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.736e-06/0.3604, allocations: 4.469 kB / 0.5293 GB, free: 11.44 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006076/0.361, allocations: 311.2 kB / 0.5296 GB, free: 11.15 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.361, allocations: 1.062 kB / 0.5296 GB, free: 11.15 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003268/0.3613, allocations: 65.97 kB / 0.5297 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.3613, allocations: 6.625 kB / 0.5297 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.379e-05/0.3614, allocations: 10.62 kB / 0.5297 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.586e-06/0.3614, allocations: 2.594 kB / 0.5297 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.3614, allocations: 1.344 kB / 0.5297 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005817/0.362, allocations: 0.6378 MB / 0.5303 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.459e-05/0.362, allocations: 95.7 kB / 0.5304 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.812e-05/0.3621, allocations: 11.73 kB / 0.5304 GB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002465/0.3623, allocations: 6.438 kB / 0.5304 GB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.172e-05/0.3624, allocations: 12.14 kB / 0.5304 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.388e-05/0.3624, allocations: 5.75 kB / 0.5304 GB, free: 10.46 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001469/0.3626, allocations: 157.5 kB / 0.5306 GB, free: 10.35 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3626, allocations: 1.312 kB / 0.5306 GB, free: 10.35 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005594/0.3631, allocations: 90.09 kB / 0.5307 GB, free: 10.32 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.0008619/0.364, allocations: 1.18 MB / 0.5318 GB, free: 9.242 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003895/0.3644, allocations: 188.5 kB / 0.532 GB, free: 9.168 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3644, allocations: 3.938 kB / 0.532 GB, free: 9.164 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001028/0.3645, allocations: 73.75 kB / 0.5321 GB, free: 9.137 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007967/0.3653, allocations: 52.17 kB / 0.5321 GB, free: 9.109 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004241/0.3696, allocations: 3.53 MB / 0.5356 GB, free: 6.117 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004221/0.37, allocations: 0.7692 MB / 0.5363 GB, free: 5.379 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001489/0.3702, allocations: 30.16 kB / 0.5364 GB, free: 5.363 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001392/0.3703, allocations: 85.5 kB / 0.5364 GB, free: 5.293 MB / 398.1 MB Notification: Performance of SimCode: time 1.132e-06/0.3703, allocations: 0 / 0.5364 GB, free: 5.293 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02575/0.3961, allocations: 5.444 MB / 0.5418 GB, free: 2.547 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.036/8.432, allocations: 5 kB / 0.5418 GB, free: 2.543 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.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_4.0.0_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches