Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",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.001507/0.001507, allocations: 104.5 kB / 17.63 MB, free: 5.344 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.001761/0.001761, allocations: 192 kB / 18.56 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 222.9 MB / 242.2 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2119/0.2119, allocations: 44.19 MB / 336.6 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 69.3 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1291, allocations: 60.81 MB / 469.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003545/0.1327, allocations: 2.238 MB / 471.6 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001577/0.1343, allocations: 0.7284 MB / 472.3 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001179/0.1344, allocations: 7.938 kB / 472.3 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001859/0.1346, allocations: 35.66 kB / 472.4 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001327/0.1348, allocations: 71.41 kB / 472.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004012/0.1352, allocations: 139.7 kB / 472.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003188/0.1356, allocations: 327.3 kB / 472.9 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000194/0.1358, allocations: 86.44 kB / 473 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001895/0.136, allocations: 143.5 kB / 473.1 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002032/0.1362, allocations: 163.4 kB / 473.3 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.615e-05/0.1362, allocations: 24 kB / 473.3 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001409/0.1364, allocations: 75.95 kB / 473.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.202e-05/0.1365, allocations: 59.83 kB / 473.4 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001238/0.1366, allocations: 127.4 kB / 473.6 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003465/0.1369, allocations: 343.1 kB / 473.9 MB, free: 9.715 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.137, allocations: 0 / 473.9 MB, free: 9.715 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.137, allocations: 4 kB / 473.9 MB, free: 9.711 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.321e-06/0.137, allocations: 0 / 473.9 MB, free: 9.711 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0009399/0.1379, allocations: 0.5603 MB / 474.5 MB, free: 9.105 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.138, allocations: 8.031 kB / 474.5 MB, free: 9.098 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.001e-05/0.1381, allocations: 58.73 kB / 474.5 MB, free: 9.031 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.706e-05/0.1381, allocations: 24.66 kB / 474.5 MB, free: 9.008 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002431/0.1384, allocations: 239.9 kB / 474.8 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.914e-05/0.1384, allocations: 16.81 kB / 474.8 MB, free: 8.715 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.295e-05/0.1385, allocations: 28.31 kB / 474.8 MB, free: 8.688 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004632/0.1389, allocations: 263.3 kB / 475.1 MB, free: 8.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.671e-05/0.139, allocations: 4 kB / 475.1 MB, free: 8.426 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.958e-05/0.139, allocations: 12 kB / 475.1 MB, free: 8.414 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.139, allocations: 4 kB / 475.1 MB, free: 8.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004556/0.1395, allocations: 237.5 kB / 475.3 MB, free: 8.176 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001222/0.1407, allocations: 0.7323 MB / 476.1 MB, free: 7.395 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004959/0.1412, allocations: 246.5 kB / 476.3 MB, free: 7.145 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002579/0.1415, allocations: 143.5 kB / 476.4 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.49e-05/0.1415, allocations: 4 kB / 476.4 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.382e-05/0.1415, allocations: 38.98 kB / 476.5 MB, free: 6.953 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.463e-06/0.1416, allocations: 0 / 476.5 MB, free: 6.953 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002917/0.1445, allocations: 1.453 MB / 477.9 MB, free: 5.387 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.251e-05/0.1445, allocations: 55.41 kB / 478 MB, free: 5.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001885/0.1447, allocations: 203.1 kB / 478.2 MB, free: 5.109 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.236e-05/0.1448, allocations: 41.64 kB / 478.2 MB, free: 5.062 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.788e-05/0.1449, allocations: 140.6 kB / 478.4 MB, free: 4.922 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.283e-05/0.1449, allocations: 110.4 kB / 478.5 MB, free: 4.812 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001125/0.1451, allocations: 65.59 kB / 478.5 MB, free: 4.742 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.1452, allocations: 342.8 kB / 478.9 MB, free: 4.398 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002441/0.1454, allocations: 116 kB / 479 MB, free: 4.285 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000264/0.1457, allocations: 172.2 kB / 479.2 MB, free: 4.105 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004032/0.1461, allocations: 251.3 kB / 479.4 MB, free: 3.848 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.1461, allocations: 0 / 479.4 MB, free: 3.848 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007139/0.1469, allocations: 429.9 kB / 479.8 MB, free: 3.418 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.1469, allocations: 8 kB / 479.8 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.404e-05/0.1469, allocations: 0 / 479.8 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005151/0.1474, allocations: 244.5 kB / 480.1 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002104/0.1476, allocations: 47.97 kB / 480.1 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006896/0.1483, allocations: 0.7591 MB / 480.9 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002445/0.1486, allocations: 39.98 kB / 480.9 MB, free: 2.297 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.543e-05/0.1486, allocations: 8 kB / 480.9 MB, free: 2.289 MB / 350.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,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0001476/0.1488, allocations: 141.8 kB / 481.1 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.482e-05/0.1488, allocations: 23.75 kB / 481.1 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.211e-05/0.1489, allocations: 38.7 kB / 481.1 MB, free: 2.082 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.1489, allocations: 12.06 kB / 481.1 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.1489, allocations: 0 / 481.1 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.149, allocations: 0 / 481.1 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001446/0.1504, allocations: 0.9519 MB / 482.1 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.1504, allocations: 0 / 482.1 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002153/0.1506, allocations: 47.91 kB / 482.1 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003833/0.151, allocations: 220.7 kB / 482.3 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.36e-05/0.1511, allocations: 4 kB / 482.3 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005788/0.1517, allocations: 0.7201 MB / 483.1 MB, free: 32 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.1517, allocations: 0 / 483.1 MB, free: 32 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001033/0.1527, allocations: 0.6411 MB / 483.7 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001199/0.1528, allocations: 124.8 kB / 483.8 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.827e-05/0.1529, allocations: 16.02 kB / 483.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002485/0.1532, allocations: 35.91 kB / 483.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/0.1533, allocations: 47.91 kB / 483.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.622e-05/0.1533, allocations: 15.98 kB / 483.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000136/0.1535, allocations: 152.3 kB / 484.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1535, allocations: 0 / 484.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003661/0.1538, allocations: 76 kB / 484.2 MB, free: 14.89 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,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001364/0.1552, allocations: 1.202 MB / 485.4 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007406/0.156, allocations: 323.7 kB / 485.7 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.156, allocations: 0 / 485.7 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003085/0.1563, allocations: 168.3 kB / 485.9 MB, free: 13.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000395/0.1567, allocations: 35.98 kB / 485.9 MB, free: 13.14 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004502/0.1612, allocations: 3.101 MB / 489 MB, free: 9.938 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002853/0.1615, allocations: 0.7525 MB / 489.7 MB, free: 9.152 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.767e-05/0.1616, allocations: 18.3 kB / 489.8 MB, free: 9.137 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.68e-05/0.1617, allocations: 67.41 kB / 489.8 MB, free: 9.074 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1617, allocations: 0 / 489.8 MB, free: 9.074 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05294/0.2147, allocations: 7.443 MB / 497.3 MB, free: 1.758 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.14/12.35, allocations: 7.438 kB / 497.3 MB, free: 1.754 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches