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.001085/0.001086, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001474/0.001474, allocations: 212.6 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.218/0.218, allocations: 46.1 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001462/0.001463, allocations: 79.64 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.1269, allocations: 62.45 MB / 480.1 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.005805/0.1328, allocations: 3.04 MB / 483.2 MB, free: 2.129 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00231/0.1351, allocations: 1.067 MB / 484.2 MB, free: 1.059 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003741/0.1355, allocations: 11.94 kB / 484.2 MB, free: 1.047 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003231/0.1359, allocations: 55.38 kB / 484.3 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000351/0.1363, allocations: 122.9 kB / 484.4 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006438/0.1369, allocations: 171.5 kB / 484.6 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004164/0.1374, allocations: 457.9 kB / 485 MB, free: 260 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002143/0.1376, allocations: 120.4 kB / 485.1 MB, free: 136 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001855/0.1378, allocations: 151.5 kB / 485.3 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002136/0.138, allocations: 179.1 kB / 485.5 MB, free: 15.81 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.477e-05/0.1381, allocations: 32 kB / 485.5 MB, free: 15.78 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001577/0.1382, allocations: 59.91 kB / 485.6 MB, free: 15.72 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.195e-05/0.1383, allocations: 71.77 kB / 485.6 MB, free: 15.65 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001762/0.1385, allocations: 203 kB / 485.8 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004516/0.1389, allocations: 426.8 kB / 486.2 MB, free: 15.03 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.139, allocations: 4 kB / 486.2 MB, free: 15.03 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.139, allocations: 0 / 486.2 MB, free: 15.03 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.155e-06/0.139, allocations: 0 / 486.2 MB, free: 15.03 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.001022/0.14, allocations: 0.659 MB / 486.9 MB, free: 14.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.727e-05/0.1401, allocations: 16.02 kB / 486.9 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.506e-05/0.1402, allocations: 66.72 kB / 487 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002981/0.1405, allocations: 60.45 kB / 487 MB, free: 14.17 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003224/0.1408, allocations: 291.5 kB / 487.3 MB, free: 13.85 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.772e-05/0.1408, allocations: 25.38 kB / 487.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.805e-05/0.1409, allocations: 48.03 kB / 487.4 MB, free: 13.78 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005955/0.1415, allocations: 359.6 kB / 487.8 MB, free: 13.4 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.736e-05/0.1416, allocations: 7.984 kB / 487.8 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.315e-05/0.1416, allocations: 12 kB / 487.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.117e-05/0.1416, allocations: 15.98 kB / 487.8 MB, free: 13.37 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004327/0.1421, allocations: 211.8 kB / 488 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002162/0.1442, allocations: 1.596 MB / 489.6 MB, free: 11.45 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000561/0.1448, allocations: 307.7 kB / 489.9 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001653/0.145, allocations: 101.1 kB / 490 MB, free: 10.98 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.239e-05/0.145, allocations: 4.156 kB / 490 MB, free: 10.97 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.939e-05/0.1451, allocations: 50.48 kB / 490 MB, free: 10.91 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.763e-06/0.1451, allocations: 0 / 490 MB, free: 10.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006679/0.1457, allocations: 265.1 kB / 490.3 MB, free: 10.65 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.403e-05/0.1458, allocations: 183.9 kB / 490.5 MB, free: 10.43 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002358/0.1461, allocations: 246.5 kB / 490.7 MB, free: 10.18 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.284e-05/0.1461, allocations: 29.7 kB / 490.8 MB, free: 10.14 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001526/0.1463, allocations: 215.9 kB / 491 MB, free: 9.926 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.013e-05/0.1464, allocations: 110.4 kB / 491.1 MB, free: 9.816 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001052/0.1465, allocations: 70.14 kB / 491.1 MB, free: 9.742 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.1466, allocations: 346.7 kB / 491.5 MB, free: 9.395 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000174/0.1468, allocations: 80.84 kB / 491.6 MB, free: 9.316 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002995/0.1471, allocations: 245.7 kB / 491.8 MB, free: 8.996 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004721/0.1476, allocations: 365.1 kB / 492.2 MB, free: 8.562 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.067e-06/0.1476, allocations: 3.938 kB / 492.2 MB, free: 8.559 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000613/0.1482, allocations: 381.3 kB / 492.5 MB, free: 8.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.608e-05/0.1483, allocations: 8 kB / 492.5 MB, free: 8.172 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.1483, allocations: 8.281 kB / 492.5 MB, free: 8.164 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.1483, allocations: 8 kB / 492.6 MB, free: 8.156 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003627/0.1487, allocations: 115.8 kB / 492.7 MB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.564e-05/0.1487, allocations: 11.94 kB / 492.7 MB, free: 8.031 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002101/0.1489, allocations: 35.59 kB / 492.7 MB, free: 7.996 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.928e-05/0.149, allocations: 23.98 kB / 492.7 MB, free: 7.973 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.0001603/0.1491, allocations: 161.6 kB / 492.9 MB, free: 7.805 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001323/0.1493, allocations: 27.72 kB / 492.9 MB, free: 7.777 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001972/0.1495, allocations: 96.14 kB / 493 MB, free: 7.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.1495, allocations: 4 kB / 493 MB, free: 7.676 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.1495, allocations: 0 / 493 MB, free: 7.676 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.1495, allocations: 7.984 kB / 493 MB, free: 7.668 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006722/0.1502, allocations: 345.2 kB / 493.4 MB, free: 7.281 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.1502, allocations: 0 / 493.4 MB, free: 7.281 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003985/0.1506, allocations: 83.89 kB / 493.4 MB, free: 7.199 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.454e-06/0.1506, allocations: 4 kB / 493.5 MB, free: 7.195 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.218e-05/0.1506, allocations: 15.92 kB / 493.5 MB, free: 7.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.468e-06/0.1507, allocations: 4 kB / 493.5 MB, free: 7.176 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.1507, allocations: 11.92 kB / 493.5 MB, free: 7.164 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007042/0.1514, allocations: 0.7622 MB / 494.2 MB, free: 6.383 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.065e-05/0.1515, allocations: 104.8 kB / 494.3 MB, free: 6.262 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.265e-05/0.1515, allocations: 8 kB / 494.4 MB, free: 6.254 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003055/0.1518, allocations: 8 kB / 494.4 MB, free: 6.246 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.846e-05/0.1519, allocations: 23.91 kB / 494.4 MB, free: 6.223 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.385e-05/0.1519, allocations: 11.94 kB / 494.4 MB, free: 6.211 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001433/0.1521, allocations: 170 kB / 494.6 MB, free: 6.047 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1521, allocations: 0 / 494.6 MB, free: 6.047 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005952/0.1527, allocations: 99.69 kB / 494.7 MB, free: 5.949 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.000946/0.1536, allocations: 1.312 MB / 496 MB, free: 4.609 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000456/0.1541, allocations: 245.2 kB / 496.2 MB, free: 4.371 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1541, allocations: 0 / 496.2 MB, free: 4.371 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001835/0.1543, allocations: 96.2 kB / 496.3 MB, free: 4.277 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000941/0.1552, allocations: 84.41 kB / 496.4 MB, free: 4.195 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004591/0.1598, allocations: 4.076 MB / 0.4887 GB, free: 15.86 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003566/0.1602, allocations: 0.7874 MB / 0.4895 GB, free: 15.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001692/0.1604, allocations: 38.95 kB / 0.4895 GB, free: 15.01 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001449/0.1605, allocations: 115.3 kB / 0.4897 GB, free: 14.9 MB / 382.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1606, allocations: 0 / 0.4897 GB, free: 14.9 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02328/0.1838, allocations: 6.245 MB / 0.4957 GB, free: 8.742 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.716/7.9, allocations: 14.72 kB / 0.4958 GB, free: 8.73 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches