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.000756/0.0007559, allocations: 93.22 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008659/0.0008659, allocations: 201.5 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 227.7 MB / 246.8 MB, free: 9.578 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1922/0.1922, allocations: 46.18 MB / 345.2 MB, free: 11.18 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002689/0.0002689, allocations: 8 kB / 419.6 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09999/0.1003, allocations: 63.56 MB / 483.2 MB, free: 4.055 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.00303/0.1033, allocations: 2.704 MB / 485.9 MB, free: 1.332 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001765/0.1051, allocations: 1.052 MB / 486.9 MB, free: 284 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002075/0.1054, allocations: 11.94 kB / 486.9 MB, free: 272 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000163/0.1055, allocations: 43.62 kB / 487 MB, free: 228 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002634/0.1058, allocations: 103.2 kB / 487.1 MB, free: 124 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005036/0.1063, allocations: 151.8 kB / 487.2 MB, free: 15.97 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004703/0.1068, allocations: 437.8 kB / 487.7 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000195/0.107, allocations: 97.98 kB / 487.8 MB, free: 15.44 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001956/0.1072, allocations: 143.4 kB / 487.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002185/0.1074, allocations: 163.2 kB / 488.1 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.019e-05/0.1075, allocations: 24 kB / 488.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001131/0.1076, allocations: 35.98 kB / 488.1 MB, free: 15.08 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.267e-05/0.1077, allocations: 63.75 kB / 488.2 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001732/0.1078, allocations: 208.7 kB / 488.4 MB, free: 14.81 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003838/0.1082, allocations: 402.7 kB / 488.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.1082, allocations: 4 kB / 488.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1083, allocations: 0 / 488.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.006e-05/0.1083, allocations: 0 / 488.8 MB, free: 14.41 MB / 366.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.0009038/0.1092, allocations: 0.5851 MB / 489.4 MB, free: 13.78 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.1092, allocations: 12.88 kB / 489.4 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.461e-05/0.1093, allocations: 74.7 kB / 489.4 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002758/0.1096, allocations: 64.36 kB / 489.5 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002995/0.1099, allocations: 291.5 kB / 489.8 MB, free: 13.3 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.362e-05/0.11, allocations: 33.38 kB / 489.8 MB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.138e-05/0.11, allocations: 44.03 kB / 489.9 MB, free: 13.22 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005727/0.1106, allocations: 363.6 kB / 490.2 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.175e-05/0.1106, allocations: 15.83 kB / 490.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.135e-05/0.1107, allocations: 16 kB / 490.3 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.858e-06/0.1107, allocations: 12 kB / 490.3 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004222/0.1111, allocations: 215.8 kB / 490.5 MB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002026/0.1132, allocations: 1.589 MB / 492.1 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005768/0.1138, allocations: 315.7 kB / 492.4 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001618/0.1139, allocations: 105.1 kB / 492.5 MB, free: 10.4 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.934e-05/0.114, allocations: 4 kB / 492.5 MB, free: 10.39 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.334e-05/0.114, allocations: 42.56 kB / 492.5 MB, free: 10.34 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.643e-06/0.114, allocations: 0 / 492.5 MB, free: 10.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006505/0.1147, allocations: 281.8 kB / 492.8 MB, free: 10.06 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.096e-05/0.1147, allocations: 183.9 kB / 493 MB, free: 9.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002091/0.115, allocations: 238.6 kB / 493.2 MB, free: 9.602 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.386e-05/0.115, allocations: 33.83 kB / 493.2 MB, free: 9.562 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001245/0.1151, allocations: 219.7 kB / 493.5 MB, free: 9.344 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.498e-05/0.1152, allocations: 106.5 kB / 493.6 MB, free: 9.238 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.135e-05/0.1153, allocations: 41.69 kB / 493.6 MB, free: 9.191 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.1154, allocations: 342.8 kB / 493.9 MB, free: 8.848 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000179/0.1156, allocations: 92.77 kB / 494 MB, free: 8.758 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002616/0.1158, allocations: 245.8 kB / 494.3 MB, free: 8.438 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004684/0.1163, allocations: 369.1 kB / 494.6 MB, free: 8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.1163, allocations: 0 / 494.6 MB, free: 8 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006333/0.117, allocations: 388.9 kB / 495 MB, free: 7.613 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.117, allocations: 8 kB / 495 MB, free: 7.605 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/0.117, allocations: 4 kB / 495 MB, free: 7.602 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.117, allocations: 8 kB / 495 MB, free: 7.594 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003471/0.1174, allocations: 107.8 kB / 495.1 MB, free: 7.488 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.461e-05/0.1174, allocations: 11.98 kB / 495.1 MB, free: 7.477 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002208/0.1176, allocations: 44.25 kB / 495.2 MB, free: 7.434 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.763e-05/0.1177, allocations: 20 kB / 495.2 MB, free: 7.414 MB / 366.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.0001533/0.1178, allocations: 161.6 kB / 495.4 MB, free: 7.246 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001313/0.118, allocations: 35.78 kB / 495.4 MB, free: 7.211 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001747/0.1182, allocations: 99.33 kB / 495.5 MB, free: 7.109 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.351e-06/0.1182, allocations: 4 kB / 495.5 MB, free: 7.105 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.942e-06/0.1182, allocations: 0 / 495.5 MB, free: 7.105 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.1182, allocations: 4 kB / 495.5 MB, free: 7.102 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006897/0.1189, allocations: 353.2 kB / 495.9 MB, free: 6.707 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.1189, allocations: 0 / 495.9 MB, free: 6.707 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003993/0.1193, allocations: 83.89 kB / 495.9 MB, free: 6.625 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.1193, allocations: 4 kB / 495.9 MB, free: 6.621 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.324e-05/0.1193, allocations: 8.094 kB / 495.9 MB, free: 6.613 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.1194, allocations: 7.938 kB / 496 MB, free: 6.605 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1194, allocations: 0 / 496 MB, free: 6.605 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007026/0.1201, allocations: 0.7701 MB / 496.7 MB, free: 5.812 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.756e-05/0.1202, allocations: 108.7 kB / 496.8 MB, free: 5.688 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.061e-05/0.1202, allocations: 11.98 kB / 496.8 MB, free: 5.676 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003115/0.1205, allocations: 12 kB / 496.9 MB, free: 5.664 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.654e-05/0.1206, allocations: 19.97 kB / 496.9 MB, free: 5.645 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.659e-05/0.1206, allocations: 11.94 kB / 496.9 MB, free: 5.633 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001494/0.1208, allocations: 170 kB / 497 MB, free: 5.465 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1208, allocations: 0 / 497 MB, free: 5.465 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006036/0.1214, allocations: 99.69 kB / 497.1 MB, free: 5.367 MB / 366.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.0009648/0.1223, allocations: 1.316 MB / 498.5 MB, free: 4.027 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004355/0.1228, allocations: 228.6 kB / 498.7 MB, free: 3.805 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.1228, allocations: 7.938 kB / 498.7 MB, free: 3.797 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001743/0.123, allocations: 104.1 kB / 498.8 MB, free: 3.695 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009399/0.1239, allocations: 72.36 kB / 498.9 MB, free: 3.629 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005012/0.129, allocations: 4.42 MB / 0.4915 GB, free: 14.96 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004096/0.1294, allocations: 0.7914 MB / 0.4923 GB, free: 14.14 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001621/0.1296, allocations: 34.95 kB / 0.4923 GB, free: 14.11 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001466/0.1297, allocations: 111.4 kB / 0.4924 GB, free: 14 MB / 382.1 MB Notification: Performance of SimCode: time 1.032e-06/0.1297, allocations: 8 kB / 0.4924 GB, free: 13.99 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01818/0.1479, allocations: 5.871 MB / 0.4981 GB, free: 8.254 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001782/0.1481, allocations: 195 kB / 0.4983 GB, free: 7.996 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.843/1.991, allocations: 0 / 0.4983 GB, free: 7.996 MB / 382.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