Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_3_2_3_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.001113/0.001113, allocations: 108.2 kB / 16.41 MB, free: 6.496 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.001187/0.001187, allocations: 189.5 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.467/1.467, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2412/0.2412, allocations: 43.53 MB / 314.1 MB, free: 464 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001573/0.001573, allocations: 60.47 kB / 441.3 MB, free: 6.211 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1382/0.1398, allocations: 57.8 MB / 499.1 MB, free: 12.34 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.0048/0.1446, allocations: 2.692 MB / 0.49 GB, free: 9.633 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0022/0.1468, allocations: 0.99 MB / 0.491 GB, free: 8.633 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003833/0.1473, allocations: 7.938 kB / 0.491 GB, free: 8.625 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002677/0.1475, allocations: 55.52 kB / 0.491 GB, free: 8.57 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003974/0.148, allocations: 95.06 kB / 0.4911 GB, free: 8.477 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000689/0.1487, allocations: 147.6 kB / 0.4913 GB, free: 8.332 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005942/0.1493, allocations: 366.2 kB / 0.4916 GB, free: 7.973 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000267/0.1496, allocations: 101 kB / 0.4917 GB, free: 7.871 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002401/0.1498, allocations: 135.5 kB / 0.4918 GB, free: 7.738 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002811/0.1501, allocations: 143.3 kB / 0.492 GB, free: 7.598 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.924e-05/0.1502, allocations: 24 kB / 0.492 GB, free: 7.574 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001679/0.1504, allocations: 43.98 kB / 0.492 GB, free: 7.531 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.79e-05/0.1505, allocations: 59.77 kB / 0.4921 GB, free: 7.473 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002031/0.1507, allocations: 167.2 kB / 0.4923 GB, free: 7.309 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005327/0.1512, allocations: 362.7 kB / 0.4926 GB, free: 6.953 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.1512, allocations: 0 / 0.4926 GB, free: 6.953 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.1512, allocations: 7.938 kB / 0.4926 GB, free: 6.945 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.602e-05/0.1513, allocations: 0 / 0.4926 GB, free: 6.945 MB / 382.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.001325/0.1526, allocations: 0.5965 MB / 0.4932 GB, free: 6.297 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.645e-05/0.1527, allocations: 11.89 kB / 0.4932 GB, free: 6.285 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001178/0.1528, allocations: 70.72 kB / 0.4933 GB, free: 6.207 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003289/0.1531, allocations: 48.55 kB / 0.4933 GB, free: 6.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000602/0.1537, allocations: 267.7 kB / 0.4936 GB, free: 5.859 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.24e-05/0.1538, allocations: 21.03 kB / 0.4936 GB, free: 5.84 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.638e-05/0.1539, allocations: 36.31 kB / 0.4936 GB, free: 5.805 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005979/0.1545, allocations: 306.4 kB / 0.4939 GB, free: 5.484 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.9e-05/0.1545, allocations: 15.89 kB / 0.4939 GB, free: 5.469 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.418e-05/0.1546, allocations: 12 kB / 0.4939 GB, free: 5.457 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.284e-05/0.1546, allocations: 8 kB / 0.494 GB, free: 5.449 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003924/0.155, allocations: 167.8 kB / 0.4941 GB, free: 5.285 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002478/0.1575, allocations: 1.34 MB / 0.4954 GB, free: 3.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004864/0.158, allocations: 252.9 kB / 0.4957 GB, free: 3.547 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001247/0.1581, allocations: 76.33 kB / 0.4957 GB, free: 3.457 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.441e-05/0.1581, allocations: 4.156 kB / 0.4957 GB, free: 3.453 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.116e-05/0.1582, allocations: 42.48 kB / 0.4958 GB, free: 3.402 MB / 382.1 MB Notification: Performance of pre-optimization done (n=22): time 1.432e-06/0.1582, allocations: 0 / 0.4958 GB, free: 3.402 MB / 382.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005325/0.1587, allocations: 213.3 kB / 0.496 GB, free: 3.188 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.248e-05/0.1588, allocations: 158.2 kB / 0.4961 GB, free: 2.996 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002717/0.1591, allocations: 224.2 kB / 0.4963 GB, free: 2.762 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.576e-05/0.1591, allocations: 25.7 kB / 0.4964 GB, free: 2.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001462/0.1593, allocations: 188 kB / 0.4966 GB, free: 2.543 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.612e-05/0.1594, allocations: 98.64 kB / 0.4966 GB, free: 2.445 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001193/0.1595, allocations: 61.69 kB / 0.4967 GB, free: 2.379 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.1597, allocations: 334.8 kB / 0.497 GB, free: 2.043 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001276/0.1598, allocations: 63.92 kB / 0.4971 GB, free: 1.98 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002152/0.16, allocations: 209.9 kB / 0.4973 GB, free: 1.711 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003726/0.1604, allocations: 293.7 kB / 0.4976 GB, free: 1.359 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/0.1604, allocations: 4 kB / 0.4976 GB, free: 1.355 MB / 382.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0005249/0.161, allocations: 325.2 kB / 0.4979 GB, free: 1.031 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.5e-05/0.161, allocations: 8 kB / 0.4979 GB, free: 1.023 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.161, allocations: 4.312 kB / 0.4979 GB, free: 1.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.147e-05/0.161, allocations: 8 kB / 0.4979 GB, free: 1.012 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002965/0.1613, allocations: 83.84 kB / 0.498 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.62e-05/0.1614, allocations: 7.984 kB / 0.498 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002062/0.1616, allocations: 39.59 kB / 0.498 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.916e-05/0.1616, allocations: 19.92 kB / 0.498 GB, free: 0.8633 MB / 382.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.000155/0.1618, allocations: 157.9 kB / 0.4982 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.1619, allocations: 19.81 kB / 0.4982 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001747/0.1621, allocations: 87.02 kB / 0.4983 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.1621, allocations: 7.938 kB / 0.4983 GB, free: 0.582 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.1621, allocations: 4 kB / 0.4983 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.1621, allocations: 3.984 kB / 0.4983 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006149/0.1627, allocations: 317.3 kB / 0.4986 GB, free: 220 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.531e-06/0.1628, allocations: 0 / 0.4986 GB, free: 220 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000327/0.1631, allocations: 59.97 kB / 0.4987 GB, free: 160 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.849e-06/0.1631, allocations: 8 kB / 0.4987 GB, free: 152 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.933e-05/0.1631, allocations: 11.98 kB / 0.4987 GB, free: 140 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.531e-06/0.1632, allocations: 3.938 kB / 0.4987 GB, free: 136 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.1632, allocations: 4 kB / 0.4987 GB, free: 132 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005568/0.1637, allocations: 0.6295 MB / 0.4993 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.089e-05/0.1638, allocations: 104.8 kB / 0.4994 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.725e-05/0.1639, allocations: 4 kB / 0.4994 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002441/0.1641, allocations: 4 kB / 0.4994 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.947e-05/0.1641, allocations: 19.92 kB / 0.4994 GB, free: 15.33 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.25e-05/0.1642, allocations: 7.984 kB / 0.4994 GB, free: 15.32 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000118/0.1643, allocations: 153.8 kB / 0.4996 GB, free: 15.18 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.1643, allocations: 0 / 0.4996 GB, free: 15.18 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005248/0.1648, allocations: 75.84 kB / 0.4997 GB, free: 15.1 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.0008048/0.1656, allocations: 1.183 MB / 0.5008 GB, free: 13.89 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004114/0.1661, allocations: 191.8 kB / 0.501 GB, free: 13.7 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1661, allocations: 192 / 0.501 GB, free: 13.7 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001093/0.1662, allocations: 79.83 kB / 0.5011 GB, free: 13.62 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008103/0.167, allocations: 80.02 kB / 0.5012 GB, free: 13.55 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004749/0.1718, allocations: 3.525 MB / 0.5046 GB, free: 9.812 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005451/0.1723, allocations: 0.7716 MB / 0.5054 GB, free: 9.016 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001664/0.1725, allocations: 30.95 kB / 0.5054 GB, free: 8.984 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001595/0.1727, allocations: 87.41 kB / 0.5055 GB, free: 8.898 MB / 398.1 MB Notification: Performance of SimCode: time 1.182e-06/0.1727, allocations: 0 / 0.5055 GB, free: 8.898 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03106/0.2038, allocations: 5.421 MB / 0.5108 GB, free: 3.473 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.916/8.12, allocations: 24.88 kB / 0.5108 GB, free: 3.449 MB / 398.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches