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.001686/0.001686, allocations: 121.6 kB / 17.79 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.002224/0.002224, allocations: 199.9 kB / 18.74 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.45/1.45, allocations: 227.4 MB / 247 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2308/0.2308, allocations: 46.12 MB / 344.3 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002275/0.002275, allocations: 71.88 kB / 480.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3181/0.3204, allocations: 62.46 MB / 0.5306 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004946/0.3254, allocations: 3.025 MB / 0.5336 GB, free: 10.97 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002357/0.3278, allocations: 1.068 MB / 0.5346 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003418/0.3282, allocations: 10.81 kB / 0.5346 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000241/0.3285, allocations: 62.19 kB / 0.5347 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003343/0.3288, allocations: 123.3 kB / 0.5348 GB, free: 9.934 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006606/0.3295, allocations: 171.2 kB / 0.535 GB, free: 9.797 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006998/0.3302, allocations: 454.4 kB / 0.5354 GB, free: 9.527 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002897/0.3305, allocations: 129.4 kB / 0.5355 GB, free: 9.445 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002741/0.3308, allocations: 158.5 kB / 0.5357 GB, free: 9.359 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002887/0.3311, allocations: 172.8 kB / 0.5358 GB, free: 9.246 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.813e-05/0.3312, allocations: 29.88 kB / 0.5359 GB, free: 9.246 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001948/0.3314, allocations: 54.73 kB / 0.5359 GB, free: 9.234 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.288e-05/0.3315, allocations: 79.09 kB / 0.536 GB, free: 9.168 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002373/0.3317, allocations: 192.4 kB / 0.5362 GB, free: 9.047 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000634/0.3324, allocations: 438 kB / 0.5366 GB, free: 8.75 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3324, allocations: 0 / 0.5366 GB, free: 8.75 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3324, allocations: 4 kB / 0.5366 GB, free: 8.746 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.247e-05/0.3324, allocations: 3.984 kB / 0.5366 GB, free: 8.742 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.001191/0.3336, allocations: 0.6652 MB / 0.5372 GB, free: 8.156 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/0.3337, allocations: 9.031 kB / 0.5373 GB, free: 8.156 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000102/0.3338, allocations: 74.69 kB / 0.5373 GB, free: 8.086 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003553/0.3341, allocations: 71.97 kB / 0.5374 GB, free: 8.051 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005286/0.3347, allocations: 297.7 kB / 0.5377 GB, free: 7.758 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.511e-05/0.3347, allocations: 27.41 kB / 0.5377 GB, free: 7.746 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.638e-05/0.3348, allocations: 48.8 kB / 0.5377 GB, free: 7.723 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007027/0.3355, allocations: 359.7 kB / 0.5381 GB, free: 7.477 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.245e-05/0.3356, allocations: 10.38 kB / 0.5381 GB, free: 7.469 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.427e-05/0.3356, allocations: 11.44 kB / 0.5381 GB, free: 7.461 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.412e-05/0.3356, allocations: 9.25 kB / 0.5381 GB, free: 7.461 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000497/0.3361, allocations: 220.3 kB / 0.5383 GB, free: 7.359 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002682/0.3388, allocations: 1.576 MB / 0.5399 GB, free: 5.945 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006335/0.3395, allocations: 316.5 kB / 0.5402 GB, free: 5.699 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001812/0.3397, allocations: 95.78 kB / 0.5403 GB, free: 5.621 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.436e-05/0.3397, allocations: 3.75 kB / 0.5403 GB, free: 5.621 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.058e-05/0.3398, allocations: 41.97 kB / 0.5403 GB, free: 5.574 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 2.355e-06/0.3398, allocations: 0 / 0.5403 GB, free: 5.574 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007404/0.3405, allocations: 270.5 kB / 0.5406 GB, free: 5.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001215/0.3407, allocations: 191.1 kB / 0.5407 GB, free: 5.203 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002908/0.341, allocations: 245.3 kB / 0.541 GB, free: 5.027 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.838e-05/0.341, allocations: 30.86 kB / 0.541 GB, free: 4.992 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001832/0.3412, allocations: 219.6 kB / 0.5412 GB, free: 4.793 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.99e-05/0.3413, allocations: 115.1 kB / 0.5413 GB, free: 4.691 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001138/0.3414, allocations: 74.16 kB / 0.5414 GB, free: 4.637 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.3416, allocations: 345.3 kB / 0.5417 GB, free: 4.297 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001992/0.3418, allocations: 77.47 kB / 0.5418 GB, free: 4.266 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003202/0.3421, allocations: 251.1 kB / 0.542 GB, free: 4.008 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006044/0.3427, allocations: 363.5 kB / 0.5424 GB, free: 3.684 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.086e-06/0.3428, allocations: 2.25 kB / 0.5424 GB, free: 3.684 MB / 398.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000759/0.3435, allocations: 387.3 kB / 0.5428 GB, free: 3.48 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.81e-05/0.3436, allocations: 12.17 kB / 0.5428 GB, free: 3.477 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.3436, allocations: 4.656 kB / 0.5428 GB, free: 3.477 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.335e-05/0.3436, allocations: 9.031 kB / 0.5428 GB, free: 3.477 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003783/0.344, allocations: 106.5 kB / 0.5429 GB, free: 3.453 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.577e-05/0.344, allocations: 7.969 kB / 0.5429 GB, free: 3.453 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000276/0.3443, allocations: 44.69 kB / 0.5429 GB, free: 3.422 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.764e-05/0.3443, allocations: 16.81 kB / 0.543 GB, free: 3.422 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.0002132/0.3446, allocations: 171.1 kB / 0.5431 GB, free: 3.262 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001478/0.3447, allocations: 30.12 kB / 0.5431 GB, free: 3.246 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002211/0.3449, allocations: 93.02 kB / 0.5432 GB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.318e-06/0.345, allocations: 5.438 kB / 0.5432 GB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.345, allocations: 6.375 kB / 0.5432 GB, free: 3.164 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.355e-06/0.345, allocations: 5.203 kB / 0.5433 GB, free: 3.16 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008256/0.3458, allocations: 349.5 kB / 0.5436 GB, free: 2.848 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.3458, allocations: 2.312 kB / 0.5436 GB, free: 2.848 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004038/0.3463, allocations: 79.3 kB / 0.5437 GB, free: 2.832 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.55e-06/0.3463, allocations: 6.344 kB / 0.5437 GB, free: 2.828 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.12e-05/0.3463, allocations: 12.7 kB / 0.5437 GB, free: 2.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.871e-06/0.3463, allocations: 2.375 kB / 0.5437 GB, free: 2.82 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.3463, allocations: 2.25 kB / 0.5437 GB, free: 2.82 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009033/0.3472, allocations: 0.7813 MB / 0.5444 GB, free: 2.164 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000133/0.3474, allocations: 105.8 kB / 0.5445 GB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.833e-05/0.3474, allocations: 8.312 kB / 0.5446 GB, free: 2.047 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003326/0.3478, allocations: 8.312 kB / 0.5446 GB, free: 2.043 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.412e-05/0.3479, allocations: 21.34 kB / 0.5446 GB, free: 2.031 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.413e-05/0.3479, allocations: 14.28 kB / 0.5446 GB, free: 2.023 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001867/0.3481, allocations: 176.5 kB / 0.5448 GB, free: 1.898 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3481, allocations: 0 / 0.5448 GB, free: 1.898 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000708/0.3488, allocations: 98.44 kB / 0.5449 GB, free: 1.875 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.001325/0.3501, allocations: 1.303 MB / 0.5461 GB, free: 0.707 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005959/0.3508, allocations: 236.9 kB / 0.5464 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.3508, allocations: 1.062 kB / 0.5464 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001959/0.351, allocations: 92.38 kB / 0.5464 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00106/0.352, allocations: 86.09 kB / 0.5465 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005951/0.358, allocations: 4.086 MB / 0.5505 GB, free: 12.36 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005027/0.3586, allocations: 0.7952 MB / 0.5513 GB, free: 11.54 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002067/0.3588, allocations: 38.94 kB / 0.5513 GB, free: 11.5 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001691/0.359, allocations: 119.3 kB / 0.5514 GB, free: 11.38 MB / 414.1 MB Notification: Performance of SimCode: time 1.032e-06/0.359, allocations: 0 / 0.5514 GB, free: 11.38 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03345/0.3924, allocations: 6.381 MB / 0.5577 GB, free: 5.109 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.516/8.909, allocations: 23 kB / 0.5577 GB, free: 5.09 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