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.001461/0.001461, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001785/0.001785, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2328/0.2328, allocations: 46.11 MB / 344.1 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 75.53 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1459/0.1473, allocations: 62.45 MB / 480.1 MB, free: 5.176 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004547/0.1519, allocations: 3.032 MB / 483.2 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001817/0.1537, allocations: 1.071 MB / 484.2 MB, free: 1.047 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001617/0.1539, allocations: 4 kB / 484.2 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002061/0.1541, allocations: 67.31 kB / 484.3 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002014/0.1543, allocations: 115 kB / 484.4 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005372/0.1549, allocations: 175.5 kB / 484.6 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004338/0.1553, allocations: 449.9 kB / 485 MB, free: 256 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002225/0.1555, allocations: 120.4 kB / 485.1 MB, free: 132 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001755/0.1557, allocations: 159.5 kB / 485.3 MB, free: 15.97 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000224/0.156, allocations: 171.1 kB / 485.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.303e-05/0.156, allocations: 32 kB / 485.5 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001387/0.1562, allocations: 51.98 kB / 485.5 MB, free: 15.72 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.353e-05/0.1563, allocations: 79.75 kB / 485.6 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002223/0.1565, allocations: 195 kB / 485.8 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004591/0.1569, allocations: 430.7 kB / 486.2 MB, free: 15.03 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.157, allocations: 0 / 486.2 MB, free: 15.03 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.157, allocations: 0 / 486.2 MB, free: 15.03 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.157, 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.001008/0.158, allocations: 0.663 MB / 486.9 MB, free: 14.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.158, allocations: 8.031 kB / 486.9 MB, free: 14.31 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.247e-05/0.1581, allocations: 78.66 kB / 487 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002947/0.1584, allocations: 64.44 kB / 487 MB, free: 14.16 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003308/0.1588, allocations: 283.5 kB / 487.3 MB, free: 13.85 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.325e-05/0.1588, allocations: 33.31 kB / 487.3 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.678e-05/0.1589, allocations: 48.02 kB / 487.4 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005622/0.1595, allocations: 367.6 kB / 487.8 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.23e-05/0.1595, allocations: 0 / 487.8 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.713e-05/0.1595, allocations: 16 kB / 487.8 MB, free: 13.37 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/0.1596, allocations: 8 kB / 487.8 MB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004093/0.16, allocations: 223.7 kB / 488 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002069/0.1621, allocations: 1.588 MB / 489.6 MB, free: 11.44 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005581/0.1626, allocations: 311.6 kB / 489.9 MB, free: 11.08 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001763/0.1628, allocations: 101.2 kB / 490 MB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.484e-05/0.1628, allocations: 8 kB / 490 MB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.356e-05/0.1629, allocations: 46.48 kB / 490 MB, free: 10.9 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.713e-06/0.1629, allocations: 0 / 490 MB, free: 10.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006357/0.1635, allocations: 265.3 kB / 490.3 MB, free: 10.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/0.1636, allocations: 191.8 kB / 490.5 MB, free: 10.41 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002266/0.1639, allocations: 234.5 kB / 490.7 MB, free: 10.17 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.788e-05/0.1639, allocations: 37.83 kB / 490.8 MB, free: 10.12 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001392/0.1641, allocations: 215.7 kB / 491 MB, free: 9.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.758e-05/0.1642, allocations: 106.5 kB / 491.1 MB, free: 9.805 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.175e-05/0.1643, allocations: 74.12 kB / 491.1 MB, free: 9.727 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.1644, allocations: 338.8 kB / 491.5 MB, free: 9.387 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001628/0.1646, allocations: 80.83 kB / 491.6 MB, free: 9.309 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002695/0.1648, allocations: 257.7 kB / 491.8 MB, free: 8.977 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004587/0.1653, allocations: 353.1 kB / 492.1 MB, free: 8.555 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.65e-06/0.1653, allocations: 4 kB / 492.2 MB, free: 8.551 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005845/0.1659, allocations: 381.2 kB / 492.5 MB, free: 8.172 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.1659, allocations: 12.19 kB / 492.5 MB, free: 8.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.172e-05/0.166, allocations: 11.94 kB / 492.5 MB, free: 8.148 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.462e-05/0.166, allocations: 8 kB / 492.6 MB, free: 8.141 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003372/0.1663, allocations: 103.8 kB / 492.7 MB, free: 8.039 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.638e-05/0.1664, allocations: 15.92 kB / 492.7 MB, free: 8.023 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001979/0.1666, allocations: 43.59 kB / 492.7 MB, free: 7.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.692e-05/0.1666, allocations: 20 kB / 492.7 MB, free: 7.961 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.000176/0.1668, allocations: 153.7 kB / 492.9 MB, free: 7.801 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001272/0.1669, allocations: 27.72 kB / 492.9 MB, free: 7.773 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000173/0.1671, allocations: 99.31 kB / 493 MB, free: 7.672 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.1671, allocations: 8 kB / 493 MB, free: 7.664 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.1671, allocations: 320 / 493 MB, free: 7.664 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.1671, allocations: 0 / 493 MB, free: 7.664 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006342/0.1678, allocations: 357.2 kB / 493.4 MB, free: 7.266 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1678, allocations: 0 / 493.4 MB, free: 7.266 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003762/0.1682, allocations: 83.89 kB / 493.4 MB, free: 7.184 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.539e-06/0.1682, allocations: 7.938 kB / 493.5 MB, free: 7.176 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.322e-05/0.1682, allocations: 8 kB / 493.5 MB, free: 7.168 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.295e-06/0.1682, allocations: 4.312 kB / 493.5 MB, free: 7.164 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.297e-06/0.1682, allocations: 4 kB / 493.5 MB, free: 7.16 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007398/0.169, allocations: 0.77 MB / 494.2 MB, free: 6.371 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.487e-05/0.1691, allocations: 101.5 kB / 494.3 MB, free: 6.254 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.265e-05/0.1691, allocations: 8 kB / 494.3 MB, free: 6.246 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003052/0.1694, allocations: 11.98 kB / 494.4 MB, free: 6.234 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.251e-05/0.1695, allocations: 11.98 kB / 494.4 MB, free: 6.223 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.92e-05/0.1695, allocations: 19.92 kB / 494.4 MB, free: 6.203 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001453/0.1697, allocations: 166 kB / 494.6 MB, free: 6.043 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1697, allocations: 4 kB / 494.6 MB, free: 6.039 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005604/0.1702, allocations: 99.69 kB / 494.7 MB, free: 5.941 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.0009544/0.1712, allocations: 1.316 MB / 496 MB, free: 4.598 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004455/0.1716, allocations: 244.8 kB / 496.2 MB, free: 4.359 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.1717, allocations: 0 / 496.2 MB, free: 4.359 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001698/0.1718, allocations: 104 kB / 496.3 MB, free: 4.258 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009314/0.1728, allocations: 85.75 kB / 496.4 MB, free: 4.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00499/0.1778, allocations: 4.072 MB / 0.4887 GB, free: 15.85 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004151/0.1782, allocations: 0.7912 MB / 0.4895 GB, free: 15.04 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001583/0.1784, allocations: 34.95 kB / 0.4895 GB, free: 15 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001641/0.1785, allocations: 115.4 kB / 0.4897 GB, free: 14.89 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1785, allocations: 0 / 0.4897 GB, free: 14.89 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02552/0.2041, allocations: 6.234 MB / 0.4957 GB, free: 8.734 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.434/7.638, allocations: 15.56 kB / 0.4958 GB, free: 8.719 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