Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001327/0.001327, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001658/0.001658, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 227.4 MB / 246.3 MB, free: 10.76 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2158/0.2158, allocations: 46.09 MB / 343.6 MB, free: 11.82 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 76.22 kB / 416.9 MB, free: 20.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1333, allocations: 62.45 MB / 479.4 MB, free: 5.656 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004488/0.1378, allocations: 2.412 MB / 481.8 MB, free: 3.227 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001827/0.1397, allocations: 0.892 MB / 482.7 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002492/0.14, allocations: 0 / 482.7 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003437/0.1404, allocations: 43.7 kB / 482.7 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002939/0.1407, allocations: 67.58 kB / 482.8 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005048/0.1412, allocations: 127.7 kB / 482.9 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004116/0.1416, allocations: 335.4 kB / 483.2 MB, free: 1.766 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001853/0.1418, allocations: 69.34 kB / 483.3 MB, free: 1.695 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002743/0.1421, allocations: 143.5 kB / 483.5 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003148/0.1424, allocations: 155.3 kB / 483.6 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.544e-05/0.1425, allocations: 24 kB / 483.6 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001974/0.1427, allocations: 75.95 kB / 483.7 MB, free: 1.305 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001168/0.1428, allocations: 63.75 kB / 483.8 MB, free: 1.242 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000154/0.143, allocations: 127.3 kB / 483.9 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004367/0.1434, allocations: 359.1 kB / 484.2 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.1434, allocations: 4 kB / 484.2 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1434, allocations: 0 / 484.2 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.909e-06/0.1435, allocations: 0 / 484.2 MB, free: 0.7617 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001094/0.1446, allocations: 0.5849 MB / 484.8 MB, free: 132 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.1446, allocations: 8.875 kB / 484.8 MB, free: 124 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.19e-05/0.1447, allocations: 58.72 kB / 484.9 MB, free: 56 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001912/0.1449, allocations: 28.66 kB / 484.9 MB, free: 28 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003111/0.1452, allocations: 268.4 kB / 485.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.326e-05/0.1452, allocations: 20.94 kB / 485.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.209e-05/0.1453, allocations: 24.38 kB / 485.2 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005967/0.1459, allocations: 272.9 kB / 485.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.1459, allocations: 0 / 485.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.296e-05/0.146, allocations: 8 kB / 485.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.146, allocations: 8 kB / 485.5 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005389/0.1465, allocations: 234.1 kB / 485.7 MB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00143/0.148, allocations: 0.7443 MB / 486.5 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005867/0.1486, allocations: 246.4 kB / 486.7 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002631/0.1489, allocations: 136.9 kB / 486.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.054e-05/0.1489, allocations: 4 kB / 486.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.232e-05/0.1489, allocations: 30.56 kB / 486.9 MB, free: 13.94 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.513e-06/0.1489, allocations: 0 / 486.9 MB, free: 13.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.003248/0.1522, allocations: 1.413 MB / 488.3 MB, free: 12.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.136e-05/0.1522, allocations: 59.41 kB / 488.4 MB, free: 12.34 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002429/0.1525, allocations: 203.8 kB / 488.6 MB, free: 12.14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.873e-05/0.1525, allocations: 37.7 kB / 488.6 MB, free: 12.09 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.535e-05/0.1526, allocations: 140.6 kB / 488.7 MB, free: 11.95 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001102/0.1528, allocations: 122.3 kB / 488.9 MB, free: 11.83 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001167/0.1529, allocations: 61.69 kB / 488.9 MB, free: 11.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.153, allocations: 342.8 kB / 489.2 MB, free: 11.42 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002705/0.1533, allocations: 115.9 kB / 489.4 MB, free: 11.31 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002924/0.1536, allocations: 168.4 kB / 489.5 MB, free: 11.13 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004438/0.1541, allocations: 236.1 kB / 489.8 MB, free: 10.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1541, allocations: 0 / 489.8 MB, free: 10.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008797/0.155, allocations: 429.7 kB / 490.2 MB, free: 10.46 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.155, allocations: 15.88 kB / 490.2 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.155, allocations: 4.062 kB / 490.2 MB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000543/0.1556, allocations: 196.7 kB / 490.4 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002193/0.1558, allocations: 51.91 kB / 490.4 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008079/0.1566, allocations: 0.7319 MB / 491.2 MB, free: 9.438 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002706/0.1569, allocations: 35.97 kB / 491.2 MB, free: 9.402 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.318e-05/0.1569, allocations: 11.98 kB / 491.2 MB, free: 9.391 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (bearingFriction1.free,bearingFriction1.mode,$PRE.bearingFriction1.mode,bearingFriction1.locked,bearingFriction1.startBackward,$PRE.bearingFriction1.startBackward,bearingFriction1.startForward,$PRE.bearingFriction1.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0001697/0.1571, allocations: 152.5 kB / 491.4 MB, free: 9.234 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.639e-05/0.1572, allocations: 23.72 kB / 491.4 MB, free: 9.211 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.462e-05/0.1573, allocations: 38.64 kB / 491.4 MB, free: 9.172 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.1573, allocations: 4.062 kB / 491.4 MB, free: 9.168 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.1573, allocations: 4 kB / 491.4 MB, free: 9.164 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.1573, allocations: 4 kB / 491.4 MB, free: 9.16 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001685/0.159, allocations: 0.9478 MB / 492.4 MB, free: 8.145 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.159, allocations: 4 kB / 492.4 MB, free: 8.141 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002189/0.1593, allocations: 43.97 kB / 492.4 MB, free: 8.098 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003739/0.1596, allocations: 172.7 kB / 492.6 MB, free: 7.926 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.896e-05/0.1597, allocations: 16.02 kB / 492.6 MB, free: 7.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006818/0.1604, allocations: 0.6966 MB / 493.3 MB, free: 7.188 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.1604, allocations: 0 / 493.3 MB, free: 7.188 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00116/0.1616, allocations: 0.6147 MB / 493.9 MB, free: 6.551 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001502/0.1617, allocations: 128.8 kB / 494.1 MB, free: 6.406 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.978e-05/0.1618, allocations: 8 kB / 494.1 MB, free: 6.398 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002655/0.1621, allocations: 35.95 kB / 494.1 MB, free: 6.363 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001314/0.1622, allocations: 47.92 kB / 494.1 MB, free: 6.316 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.494e-05/0.1622, allocations: 7.984 kB / 494.2 MB, free: 6.309 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001648/0.1624, allocations: 161.6 kB / 494.3 MB, free: 6.152 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1624, allocations: 0 / 494.3 MB, free: 6.152 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003728/0.1628, allocations: 71.92 kB / 494.4 MB, free: 6.082 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002254/0.165, allocations: 1.396 MB / 495.8 MB, free: 4.777 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007272/0.1658, allocations: 308.3 kB / 496.1 MB, free: 4.477 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.1658, allocations: 0 / 496.1 MB, free: 4.477 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003582/0.1662, allocations: 163.8 kB / 496.2 MB, free: 4.316 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004292/0.1666, allocations: 43.86 kB / 496.3 MB, free: 4.273 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005106/0.1717, allocations: 3.177 MB / 499.5 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003432/0.1721, allocations: 0.7564 MB / 0.4885 GB, free: 212 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001132/0.1722, allocations: 30.3 kB / 0.4885 GB, free: 176 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001364/0.1723, allocations: 67.41 kB / 0.4886 GB, free: 112 kB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1724, allocations: 0 / 0.4886 GB, free: 112 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0214/0.1938, allocations: 7.314 MB / 0.4957 GB, free: 8.953 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002571/0.194, allocations: 276.9 kB / 0.496 GB, free: 8.574 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.977/2.171, allocations: 0 / 0.496 GB, free: 8.574 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches