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.001608/0.001608, allocations: 115.7 kB / 17.33 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002049/0.002049, allocations: 205.8 kB / 18.27 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2022/0.2022, allocations: 46.1 MB / 343.8 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 67.52 kB / 417.1 MB, free: 20.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.107, allocations: 62.46 MB / 479.6 MB, free: 5.535 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004102/0.1111, allocations: 2.401 MB / 482 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001428/0.1126, allocations: 0.8958 MB / 482.9 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001547/0.1128, allocations: 0 / 482.9 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002826/0.1131, allocations: 43.69 kB / 482.9 MB, free: 2.172 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000221/0.1133, allocations: 63.61 kB / 483 MB, free: 2.109 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003603/0.1137, allocations: 127.7 kB / 483.1 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004555/0.1141, allocations: 343.4 kB / 483.5 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001997/0.1144, allocations: 84.92 kB / 483.5 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003297/0.1147, allocations: 167.5 kB / 483.7 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002987/0.115, allocations: 163.4 kB / 483.9 MB, free: 1.238 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.988e-05/0.1151, allocations: 28 kB / 483.9 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001981/0.1153, allocations: 83.98 kB / 484 MB, free: 1.129 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001207/0.1154, allocations: 75.73 kB / 484 MB, free: 1.055 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000174/0.1156, allocations: 143.3 kB / 484.2 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005062/0.1161, allocations: 367.1 kB / 484.5 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.1161, allocations: 4 kB / 484.6 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1161, allocations: 0 / 484.6 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.26e-05/0.1161, allocations: 0 / 484.6 MB, free: 0.5508 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.001091/0.1172, allocations: 0.5771 MB / 485.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.1173, allocations: 12.03 kB / 485.1 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000163/0.1175, allocations: 58.73 kB / 485.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002083/0.1177, allocations: 32.64 kB / 485.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004009/0.1181, allocations: 260.4 kB / 485.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.604e-05/0.1181, allocations: 24.94 kB / 485.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.486e-05/0.1182, allocations: 20.38 kB / 485.5 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005488/0.1188, allocations: 268.9 kB / 485.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.1188, allocations: 0 / 485.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.276e-05/0.1188, allocations: 12 kB / 485.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.1188, allocations: 7.938 kB / 485.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004895/0.1193, allocations: 238.1 kB / 486 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001406/0.1207, allocations: 0.7444 MB / 486.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005369/0.1213, allocations: 246.3 kB / 487 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002806/0.1216, allocations: 136.8 kB / 487.2 MB, free: 13.78 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.27e-05/0.1216, allocations: 8 kB / 487.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.294e-05/0.1217, allocations: 30.56 kB / 487.2 MB, free: 13.73 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.322e-06/0.1217, allocations: 0 / 487.2 MB, free: 13.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.002915/0.1246, allocations: 1.421 MB / 488.6 MB, free: 12.2 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.795e-05/0.1246, allocations: 55.41 kB / 488.7 MB, free: 12.13 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002248/0.1249, allocations: 211.8 kB / 488.9 MB, free: 11.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.578e-05/0.1249, allocations: 37.7 kB / 488.9 MB, free: 11.87 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.018e-05/0.125, allocations: 140.6 kB / 489.1 MB, free: 11.73 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.994e-05/0.1251, allocations: 114.3 kB / 489.2 MB, free: 11.62 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001087/0.1252, allocations: 65.69 kB / 489.2 MB, free: 11.55 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.1254, allocations: 342.8 kB / 489.6 MB, free: 11.2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002453/0.1256, allocations: 112 kB / 489.7 MB, free: 11.09 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002704/0.1259, allocations: 168.4 kB / 489.8 MB, free: 10.92 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000456/0.1264, allocations: 231.2 kB / 490.1 MB, free: 10.68 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1264, allocations: 0 / 490.1 MB, free: 10.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008048/0.1272, allocations: 437.8 kB / 490.5 MB, free: 10.24 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.1272, allocations: 15.88 kB / 490.5 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.1272, allocations: 0 / 490.5 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000475/0.1277, allocations: 192.1 kB / 490.7 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002069/0.1279, allocations: 63.89 kB / 490.8 MB, free: 9.977 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007386/0.1287, allocations: 0.7269 MB / 491.5 MB, free: 9.227 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002377/0.1289, allocations: 35.95 kB / 491.5 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.705e-05/0.1289, allocations: 12 kB / 491.5 MB, free: 9.18 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.0001487/0.1291, allocations: 156.6 kB / 491.7 MB, free: 9.02 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.953e-05/0.1292, allocations: 27.7 kB / 491.7 MB, free: 8.992 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.753e-05/0.1292, allocations: 34.66 kB / 491.7 MB, free: 8.957 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.1293, allocations: 4 kB / 491.8 MB, free: 8.953 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.1293, allocations: 0 / 491.8 MB, free: 8.953 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.1293, allocations: 7.984 kB / 491.8 MB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001528/0.1308, allocations: 0.9361 MB / 492.7 MB, free: 7.941 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.1308, allocations: 4 kB / 492.7 MB, free: 7.938 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002046/0.131, allocations: 47.97 kB / 492.7 MB, free: 7.891 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003427/0.1314, allocations: 168.8 kB / 492.9 MB, free: 7.723 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.903e-05/0.1314, allocations: 15.98 kB / 492.9 MB, free: 7.707 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006292/0.1321, allocations: 0.6927 MB / 493.6 MB, free: 6.988 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1321, allocations: 4.062 kB / 493.6 MB, free: 6.984 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001033/0.1331, allocations: 0.6105 MB / 494.2 MB, free: 6.352 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001157/0.1332, allocations: 128.8 kB / 494.4 MB, free: 6.207 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.287e-05/0.1333, allocations: 12.06 kB / 494.4 MB, free: 6.195 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002539/0.1336, allocations: 43.89 kB / 494.4 MB, free: 6.152 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001538/0.1337, allocations: 43.94 kB / 494.5 MB, free: 6.109 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.412e-05/0.1338, allocations: 11.98 kB / 494.5 MB, free: 6.098 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001262/0.1339, allocations: 157.5 kB / 494.6 MB, free: 5.945 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.264e-06/0.1339, allocations: 0 / 494.6 MB, free: 5.945 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00033/0.1342, allocations: 75.88 kB / 494.7 MB, free: 5.871 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.002002/0.1362, allocations: 1.398 MB / 496.1 MB, free: 4.559 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007365/0.137, allocations: 311.7 kB / 496.4 MB, free: 4.254 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.137, allocations: 0 / 496.4 MB, free: 4.254 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003283/0.1373, allocations: 168.5 kB / 496.6 MB, free: 4.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004202/0.1378, allocations: 42.42 kB / 496.6 MB, free: 4.051 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004934/0.1427, allocations: 3.183 MB / 499.8 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003826/0.1431, allocations: 0.7603 MB / 0.4888 GB, free: 15.98 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001096/0.1432, allocations: 30.28 kB / 0.4888 GB, free: 15.95 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000117/0.1434, allocations: 75.41 kB / 0.4889 GB, free: 15.87 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1434, allocations: 0 / 0.4889 GB, free: 15.87 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07354/0.2169, allocations: 7.611 MB / 0.4963 GB, free: 8.414 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002402/0.2172, allocations: 287.8 kB / 0.4966 GB, free: 8.035 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.011/2.228, allocations: 0 / 0.4966 GB, free: 8.035 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