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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001384/0.001384, allocations: 117 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001462/0.001462, allocations: 216.7 kB / 21.46 MB, free: 1.613 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.48/1.48, allocations: 230.4 MB / 254.7 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2348/0.2348, allocations: 46.91 MB / 357.7 MB, free: 10.19 MB / 286.1 MB " [Timeout remaining time 180] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002248/0.002248, allocations: 79.88 kB / 0.4916 GB, free: 7.734 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.122, allocations: 66.04 MB / 0.5561 GB, free: 5.562 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003871/0.1259, allocations: 2.37 MB / 0.5585 GB, free: 3.176 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001696/0.1276, allocations: 0.915 MB / 0.5593 GB, free: 2.254 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001467/0.1278, allocations: 7.938 kB / 0.5594 GB, free: 2.246 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000285/0.128, allocations: 55.56 kB / 0.5594 GB, free: 2.191 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002169/0.1283, allocations: 79.39 kB / 0.5595 GB, free: 2.113 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003915/0.1286, allocations: 143.6 kB / 0.5596 GB, free: 1.973 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004563/0.1291, allocations: 355.3 kB / 0.56 GB, free: 1.625 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001785/0.1293, allocations: 60.95 kB / 0.56 GB, free: 1.559 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003039/0.1296, allocations: 163.5 kB / 0.5602 GB, free: 1.398 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002638/0.1299, allocations: 163.4 kB / 0.5603 GB, free: 1.238 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.575e-05/0.1299, allocations: 24 kB / 0.5603 GB, free: 1.215 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000186/0.1301, allocations: 83.98 kB / 0.5604 GB, free: 1.133 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001325/0.1302, allocations: 75.73 kB / 0.5605 GB, free: 1.059 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002013/0.1304, allocations: 143.3 kB / 0.5606 GB, free: 0.918 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005662/0.131, allocations: 382.6 kB / 0.561 GB, free: 0.543 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.131, allocations: 0 / 0.561 GB, free: 0.543 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.131, allocations: 4 kB / 0.561 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.41e-05/0.131, allocations: 0 / 0.561 GB, free: 0.5391 MB / 414.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.001129/0.1321, allocations: 0.5843 MB / 0.5616 GB, free: 15.91 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.1322, allocations: 12.03 kB / 0.5616 GB, free: 15.89 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.74e-05/0.1322, allocations: 4.75 kB / 0.5616 GB, free: 15.89 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.989e-05/0.1323, allocations: 66.72 kB / 0.5617 GB, free: 15.82 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001887/0.1325, allocations: 32.8 kB / 0.5617 GB, free: 15.79 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004059/0.1329, allocations: 260.6 kB / 0.5619 GB, free: 15.49 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.879e-05/0.1329, allocations: 16.94 kB / 0.562 GB, free: 15.48 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.164e-05/0.133, allocations: 24.38 kB / 0.562 GB, free: 15.45 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005879/0.1336, allocations: 272.7 kB / 0.5622 GB, free: 15.18 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.1336, allocations: 7.891 kB / 0.5622 GB, free: 15.17 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.238e-05/0.1336, allocations: 12 kB / 0.5623 GB, free: 15.16 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.272e-05/0.1337, allocations: 4 kB / 0.5623 GB, free: 15.16 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006205/0.1343, allocations: 238 kB / 0.5625 GB, free: 14.92 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001512/0.1358, allocations: 0.733 MB / 0.5632 GB, free: 14.14 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005743/0.1364, allocations: 232.7 kB / 0.5634 GB, free: 13.91 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000267/0.1367, allocations: 121.2 kB / 0.5635 GB, free: 13.79 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.513e-05/0.1367, allocations: 3.938 kB / 0.5635 GB, free: 13.78 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.081e-05/0.1368, allocations: 42.55 kB / 0.5636 GB, free: 13.73 MB / 430.1 MB Notification: Performance of pre-optimization done (n=26): time 2.134e-06/0.1368, allocations: 7.938 kB / 0.5636 GB, free: 13.72 MB / 430.1 MB Notification: Performance of matching and sorting (n=34): time 0.003544/0.1403, allocations: 1.405 MB / 0.565 GB, free: 12.21 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.297e-05/0.1404, allocations: 55.41 kB / 0.565 GB, free: 12.14 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002681/0.1406, allocations: 211.7 kB / 0.5652 GB, free: 11.92 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.054e-05/0.1407, allocations: 41.69 kB / 0.5653 GB, free: 11.87 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001176/0.1408, allocations: 140.9 kB / 0.5654 GB, free: 11.73 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/0.1409, allocations: 123 kB / 0.5655 GB, free: 11.61 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000131/0.1411, allocations: 65.69 kB / 0.5656 GB, free: 11.54 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.1412, allocations: 330.8 kB / 0.5659 GB, free: 11.21 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002694/0.1415, allocations: 123.9 kB / 0.566 GB, free: 11.09 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003103/0.1418, allocations: 163.3 kB / 0.5662 GB, free: 10.91 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004682/0.1423, allocations: 235.1 kB / 0.5664 GB, free: 10.67 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1423, allocations: 0 / 0.5664 GB, free: 10.67 MB / 430.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009594/0.1432, allocations: 425.9 kB / 0.5668 GB, free: 10.25 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.1432, allocations: 11.94 kB / 0.5668 GB, free: 10.23 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.1433, allocations: 3.938 kB / 0.5668 GB, free: 10.23 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005372/0.1438, allocations: 196.7 kB / 0.567 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002341/0.144, allocations: 47.97 kB / 0.567 GB, free: 9.988 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009079/0.1449, allocations: 0.7359 MB / 0.5678 GB, free: 9.227 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002884/0.1452, allocations: 39.95 kB / 0.5678 GB, free: 9.188 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.061e-05/0.1452, allocations: 8 kB / 0.5678 GB, free: 9.18 MB / 430.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.0001994/0.1454, allocations: 145.9 kB / 0.5679 GB, free: 9.027 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.048e-05/0.1455, allocations: 27.92 kB / 0.568 GB, free: 9 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.949e-05/0.1456, allocations: 38.7 kB / 0.568 GB, free: 8.961 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.1456, allocations: 8 kB / 0.568 GB, free: 8.953 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.1456, allocations: 0 / 0.568 GB, free: 8.953 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/0.1456, allocations: 11.97 kB / 0.568 GB, free: 8.941 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001783/0.1474, allocations: 0.9324 MB / 0.5689 GB, free: 7.941 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.014e-06/0.1474, allocations: 4 kB / 0.5689 GB, free: 7.938 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002312/0.1477, allocations: 43.97 kB / 0.569 GB, free: 7.895 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00042/0.1481, allocations: 176.6 kB / 0.5692 GB, free: 7.719 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.954e-05/0.1481, allocations: 15.92 kB / 0.5692 GB, free: 7.703 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007574/0.1489, allocations: 0.6968 MB / 0.5698 GB, free: 6.98 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1489, allocations: 0 / 0.5698 GB, free: 6.98 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001227/0.1501, allocations: 0.6115 MB / 0.5704 GB, free: 6.348 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001621/0.1503, allocations: 124.9 kB / 0.5706 GB, free: 6.207 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.691e-05/0.1503, allocations: 15.98 kB / 0.5706 GB, free: 6.191 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002718/0.1506, allocations: 31.97 kB / 0.5706 GB, free: 6.16 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001507/0.1507, allocations: 47.92 kB / 0.5707 GB, free: 6.113 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.918e-05/0.1508, allocations: 15.98 kB / 0.5707 GB, free: 6.098 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001655/0.1509, allocations: 157.5 kB / 0.5708 GB, free: 5.945 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1509, allocations: 0 / 0.5708 GB, free: 5.945 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003885/0.1513, allocations: 75.92 kB / 0.5709 GB, free: 5.871 MB / 430.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.002812/0.1541, allocations: 1.379 MB / 0.5722 GB, free: 4.578 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0008174/0.155, allocations: 291.5 kB / 0.5725 GB, free: 4.293 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.155, allocations: 0 / 0.5725 GB, free: 4.293 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000362/0.1553, allocations: 152.3 kB / 0.5727 GB, free: 4.145 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004637/0.1558, allocations: 59.62 kB / 0.5727 GB, free: 4.086 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005485/0.1613, allocations: 3.079 MB / 0.5757 GB, free: 0.9023 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003992/0.1617, allocations: 0.7602 MB / 0.5765 GB, free: 120 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001182/0.1618, allocations: 30.28 kB / 0.5765 GB, free: 88 kB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001398/0.1619, allocations: 71.41 kB / 0.5766 GB, free: 16 kB / 430.1 MB Notification: Performance of SimCode: time 9.22e-07/0.1619, allocations: 0 / 0.5766 GB, free: 16 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03054/0.1925, allocations: 7.937 MB / 0.5843 GB, free: 8.203 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.53/12.72, allocations: 9.438 kB / 0.5843 GB, free: 8.199 MB / 446.1 MB " [Timeout remaining time 647] (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 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.29526177304797]