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.001014/0.001013, 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.001005/0.001005, 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.167/1.167, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2059/0.2059, allocations: 46.1 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 74.19 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1326, allocations: 62.45 MB / 480.1 MB, free: 5.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004066/0.1367, allocations: 2.355 MB / 482.5 MB, free: 2.809 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001386/0.1381, allocations: 0.9074 MB / 483.4 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001212/0.1383, allocations: 4 kB / 483.4 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000264/0.1386, allocations: 63.5 kB / 483.5 MB, free: 1.828 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001668/0.1387, allocations: 63.42 kB / 483.5 MB, free: 1.766 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003138/0.1391, allocations: 143.6 kB / 483.7 MB, free: 1.625 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003435/0.1394, allocations: 351.4 kB / 484 MB, free: 1.281 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002031/0.1396, allocations: 88.91 kB / 484.1 MB, free: 1.191 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000233/0.1399, allocations: 151.5 kB / 484.2 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000246/0.1401, allocations: 159.4 kB / 484.4 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.134e-05/0.1402, allocations: 28 kB / 484.4 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001736/0.1404, allocations: 87.97 kB / 484.5 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001215/0.1405, allocations: 79.73 kB / 484.6 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001326/0.1406, allocations: 131.4 kB / 484.7 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004299/0.1411, allocations: 383.1 kB / 485.1 MB, free: 196 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1411, allocations: 0 / 485.1 MB, free: 196 kB / 350.1 MB Notification: Performance of FrontEnd: time 3.035e-06/0.1411, allocations: 0 / 485.1 MB, free: 196 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.1411, allocations: 3.938 kB / 485.1 MB, free: 192 kB / 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.0009583/0.1421, allocations: 0.5732 MB / 485.7 MB, free: 15.57 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.1421, allocations: 12.03 kB / 485.7 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.456e-05/0.1422, allocations: 58.73 kB / 485.7 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000168/0.1424, allocations: 36.64 kB / 485.8 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003015/0.1427, allocations: 260.5 kB / 486 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.932e-05/0.1427, allocations: 12.94 kB / 486 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.218e-05/0.1428, allocations: 24.38 kB / 486.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004905/0.1433, allocations: 272.9 kB / 486.3 MB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.715e-05/0.1433, allocations: 3.984 kB / 486.3 MB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.983e-05/0.1433, allocations: 11.94 kB / 486.3 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.1433, allocations: 12 kB / 486.3 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004922/0.1438, allocations: 234.1 kB / 486.6 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001274/0.1451, allocations: 0.7405 MB / 487.3 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005222/0.1457, allocations: 242.4 kB / 487.6 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002416/0.1459, allocations: 136.8 kB / 487.7 MB, free: 13.42 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.542e-05/0.1459, allocations: 4 kB / 487.7 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.669e-05/0.146, allocations: 38.56 kB / 487.7 MB, free: 13.37 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.373e-06/0.146, allocations: 0 / 487.7 MB, free: 13.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.003112/0.1491, allocations: 1.421 MB / 489.2 MB, free: 11.83 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.688e-05/0.1492, allocations: 59.34 kB / 489.2 MB, free: 11.76 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002194/0.1494, allocations: 207.8 kB / 489.4 MB, free: 11.55 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.338e-05/0.1494, allocations: 33.7 kB / 489.4 MB, free: 11.51 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.593e-05/0.1495, allocations: 144.6 kB / 489.6 MB, free: 11.37 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.1496, allocations: 110.4 kB / 489.7 MB, free: 11.26 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001103/0.1498, allocations: 69.69 kB / 489.8 MB, free: 11.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.1499, allocations: 338.8 kB / 490.1 MB, free: 10.84 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002527/0.1502, allocations: 120 kB / 490.2 MB, free: 10.73 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002679/0.1504, allocations: 160.4 kB / 490.4 MB, free: 10.56 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004441/0.1509, allocations: 243.2 kB / 490.6 MB, free: 10.31 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.1509, allocations: 3.984 kB / 490.6 MB, free: 10.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008355/0.1517, allocations: 425.7 kB / 491 MB, free: 9.879 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.402e-05/0.1518, allocations: 7.938 kB / 491 MB, free: 9.871 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.774e-06/0.1518, allocations: 4 kB / 491 MB, free: 9.867 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004918/0.1523, allocations: 204.1 kB / 491.2 MB, free: 9.668 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002223/0.1525, allocations: 55.91 kB / 491.3 MB, free: 9.613 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007162/0.1533, allocations: 0.7202 MB / 492 MB, free: 8.867 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002503/0.1535, allocations: 40.05 kB / 492 MB, free: 8.828 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.863e-05/0.1536, allocations: 12 kB / 492.1 MB, free: 8.816 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.0001673/0.1537, allocations: 159.9 kB / 492.2 MB, free: 8.656 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.062e-05/0.1538, allocations: 23.72 kB / 492.2 MB, free: 8.633 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.054e-05/0.1539, allocations: 30.66 kB / 492.3 MB, free: 8.602 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.682e-06/0.1539, allocations: 7.984 kB / 492.3 MB, free: 8.594 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.1539, allocations: 4 kB / 492.3 MB, free: 8.59 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.1539, allocations: 0 / 492.3 MB, free: 8.59 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001539/0.1555, allocations: 0.9478 MB / 493.2 MB, free: 7.574 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.1555, allocations: 4.062 kB / 493.2 MB, free: 7.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00022/0.1557, allocations: 51.91 kB / 493.3 MB, free: 7.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003408/0.1561, allocations: 176.7 kB / 493.5 MB, free: 7.344 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.56e-05/0.1561, allocations: 15.97 kB / 493.5 MB, free: 7.328 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006301/0.1567, allocations: 0.6927 MB / 494.2 MB, free: 6.609 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.1567, allocations: 0 / 494.2 MB, free: 6.609 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001059/0.1578, allocations: 0.6184 MB / 494.8 MB, free: 5.969 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001332/0.1579, allocations: 128.8 kB / 494.9 MB, free: 5.824 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.355e-05/0.158, allocations: 12 kB / 494.9 MB, free: 5.812 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002556/0.1583, allocations: 31.95 kB / 495 MB, free: 5.781 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001163/0.1584, allocations: 47.92 kB / 495 MB, free: 5.734 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.094e-05/0.1584, allocations: 8.062 kB / 495 MB, free: 5.727 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001601/0.1586, allocations: 161.5 kB / 495.2 MB, free: 5.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1586, allocations: 3.938 kB / 495.2 MB, free: 5.566 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003333/0.1589, allocations: 71.94 kB / 495.2 MB, free: 5.496 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.002126/0.1611, allocations: 1.387 MB / 496.6 MB, free: 4.195 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007738/0.1619, allocations: 319.7 kB / 496.9 MB, free: 3.883 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1619, allocations: 4 kB / 496.9 MB, free: 3.879 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003376/0.1622, allocations: 164.3 kB / 497.1 MB, free: 3.719 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004163/0.1626, allocations: 42.33 kB / 497.1 MB, free: 3.68 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004571/0.1672, allocations: 3.087 MB / 0.4885 GB, free: 500 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002925/0.1675, allocations: 0.7525 MB / 0.4892 GB, free: 15.71 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.84e-05/0.1676, allocations: 22.3 kB / 0.4893 GB, free: 15.68 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001097/0.1678, allocations: 71.41 kB / 0.4893 GB, free: 15.61 MB / 382.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1678, allocations: 0 / 0.4893 GB, free: 15.61 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0296/0.1974, allocations: 7.678 MB / 0.4968 GB, free: 8.066 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.25/13.45, allocations: 8 kB / 0.4968 GB, free: 8.059 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