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.0008018/0.0008019, allocations: 94 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009518/0.0009519, allocations: 200.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.349/1.349, allocations: 227.7 MB / 246.8 MB, free: 9.688 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1886/0.1886, allocations: 46.18 MB / 345.2 MB, free: 11.18 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003023/0.0003024, allocations: 8 kB / 419.6 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1223, allocations: 63.57 MB / 483.2 MB, free: 4.027 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.002888/0.1252, allocations: 2.05 MB / 485.2 MB, free: 1.965 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001576/0.1269, allocations: 0.8804 MB / 486.1 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002491/0.1271, allocations: 4 kB / 486.1 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000285/0.1274, allocations: 43.7 kB / 486.2 MB, free: 1.031 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000258/0.1277, allocations: 71.52 kB / 486.2 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004029/0.1281, allocations: 119.8 kB / 486.3 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004059/0.1286, allocations: 335.4 kB / 486.7 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001876/0.1288, allocations: 69.36 kB / 486.7 MB, free: 456 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002955/0.1291, allocations: 139.5 kB / 486.9 MB, free: 316 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002571/0.1293, allocations: 147.4 kB / 487 MB, free: 168 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.958e-05/0.1294, allocations: 16 kB / 487 MB, free: 152 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001932/0.1296, allocations: 67.98 kB / 487.1 MB, free: 84 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001152/0.1297, allocations: 67.73 kB / 487.2 MB, free: 16 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001658/0.1299, allocations: 145.1 kB / 487.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004607/0.1304, allocations: 358.9 kB / 487.7 MB, free: 15.52 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.1304, allocations: 3.938 kB / 487.7 MB, free: 15.51 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1304, allocations: 0 / 487.7 MB, free: 15.51 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.606e-06/0.1304, allocations: 0 / 487.7 MB, free: 15.51 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0009021/0.1313, allocations: 0.5421 MB / 488.2 MB, free: 14.92 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.1313, allocations: 8.875 kB / 488.2 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.027e-05/0.1314, allocations: 58.72 kB / 488.3 MB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001879/0.1316, allocations: 36.66 kB / 488.3 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002954/0.1319, allocations: 260.4 kB / 488.6 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.23e-05/0.132, allocations: 20.94 kB / 488.6 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.487e-05/0.1321, allocations: 24.38 kB / 488.6 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005331/0.1326, allocations: 272.9 kB / 488.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.506e-05/0.1326, allocations: 0 / 488.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.151e-05/0.1327, allocations: 8 kB / 488.9 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.223e-06/0.1327, allocations: 8 kB / 488.9 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005139/0.1332, allocations: 238.1 kB / 489.1 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001368/0.1346, allocations: 0.7484 MB / 489.9 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005428/0.1351, allocations: 266.3 kB / 490.1 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002536/0.1354, allocations: 132.8 kB / 490.3 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.935e-05/0.1354, allocations: 4 kB / 490.3 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.409e-05/0.1355, allocations: 34.56 kB / 490.3 MB, free: 12.71 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.713e-06/0.1355, allocations: 4 kB / 490.3 MB, free: 12.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.003196/0.1387, allocations: 1.471 MB / 491.8 MB, free: 11.12 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.594e-05/0.1387, allocations: 55.41 kB / 491.8 MB, free: 11.05 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002178/0.1389, allocations: 207.8 kB / 492 MB, free: 10.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.911e-05/0.139, allocations: 33.7 kB / 492.1 MB, free: 10.8 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.345e-05/0.1391, allocations: 144.6 kB / 492.2 MB, free: 10.65 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.133e-05/0.1392, allocations: 110.4 kB / 492.3 MB, free: 10.54 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.02e-05/0.1393, allocations: 37.7 kB / 492.3 MB, free: 10.5 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.1394, allocations: 338.8 kB / 492.7 MB, free: 10.16 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002561/0.1396, allocations: 116 kB / 492.8 MB, free: 10.05 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002747/0.1399, allocations: 168.4 kB / 493 MB, free: 9.871 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004595/0.1404, allocations: 243.2 kB / 493.2 MB, free: 9.621 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.1404, allocations: 0 / 493.2 MB, free: 9.621 MB / 366.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008412/0.1413, allocations: 433.8 kB / 493.6 MB, free: 9.188 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.1413, allocations: 7.938 kB / 493.6 MB, free: 9.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.1413, allocations: 0 / 493.6 MB, free: 9.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004665/0.1418, allocations: 200.2 kB / 493.8 MB, free: 8.984 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002227/0.142, allocations: 55.91 kB / 493.9 MB, free: 8.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000688/0.1427, allocations: 0.728 MB / 494.6 MB, free: 8.176 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002857/0.143, allocations: 47.98 kB / 494.6 MB, free: 8.129 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.096e-05/0.143, allocations: 23.98 kB / 494.7 MB, free: 8.105 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.0001553/0.1432, allocations: 156.5 kB / 494.8 MB, free: 7.945 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.616e-05/0.1433, allocations: 23.72 kB / 494.8 MB, free: 7.922 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.894e-05/0.1434, allocations: 34.64 kB / 494.9 MB, free: 7.887 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.892e-06/0.1434, allocations: 7.938 kB / 494.9 MB, free: 7.879 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.1434, allocations: 0 / 494.9 MB, free: 7.879 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.379e-06/0.1434, allocations: 0 / 494.9 MB, free: 7.879 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001564/0.145, allocations: 0.9635 MB / 495.9 MB, free: 6.848 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.145, allocations: 4.031 kB / 495.9 MB, free: 6.844 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002199/0.1452, allocations: 47.97 kB / 495.9 MB, free: 6.797 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003569/0.1456, allocations: 168.7 kB / 496.1 MB, free: 6.629 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.729e-05/0.1456, allocations: 7.984 kB / 496.1 MB, free: 6.621 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005888/0.1462, allocations: 0.7044 MB / 496.8 MB, free: 5.891 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.1462, allocations: 0 / 496.8 MB, free: 5.891 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/0.1473, allocations: 0.6108 MB / 497.4 MB, free: 5.258 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001184/0.1474, allocations: 128.8 kB / 497.5 MB, free: 5.113 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.42e-05/0.1475, allocations: 12 kB / 497.5 MB, free: 5.102 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002875/0.1478, allocations: 48.02 kB / 497.6 MB, free: 5.055 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/0.1479, allocations: 43.92 kB / 497.6 MB, free: 5.012 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.462e-05/0.1479, allocations: 15.98 kB / 497.6 MB, free: 4.996 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001378/0.1481, allocations: 149.5 kB / 497.8 MB, free: 4.852 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1481, allocations: 0 / 497.8 MB, free: 4.852 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003467/0.1484, allocations: 79.92 kB / 497.9 MB, free: 4.773 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.001981/0.1504, allocations: 1.416 MB / 499.3 MB, free: 3.445 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006671/0.1511, allocations: 308.3 kB / 499.6 MB, free: 3.145 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.1511, allocations: 128 / 499.6 MB, free: 3.145 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003245/0.1514, allocations: 171.7 kB / 499.7 MB, free: 2.977 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004111/0.1519, allocations: 39.92 kB / 499.8 MB, free: 2.938 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004777/0.1566, allocations: 3.298 MB / 0.4913 GB, free: 15.54 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002723/0.1569, allocations: 0.7641 MB / 0.492 GB, free: 14.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.903e-05/0.157, allocations: 22.28 kB / 0.4921 GB, free: 14.72 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/0.1572, allocations: 71.41 kB / 0.4921 GB, free: 14.66 MB / 382.1 MB Notification: Performance of SimCode: time 9.52e-07/0.1572, allocations: 0 / 0.4921 GB, free: 14.66 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01906/0.1762, allocations: 7.083 MB / 0.499 GB, free: 7.75 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002632/0.1765, allocations: 277 kB / 0.4993 GB, free: 7.371 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.874/2.051, allocations: 4.062 kB / 0.4993 GB, free: 7.367 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