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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00163/0.00163, allocations: 119 kB / 18.5 MB, free: 4.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001897/0.001897, allocations: 190.9 kB / 21.44 MB, free: 1.645 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.548/1.548, allocations: 225.6 MB / 249.8 MB, free: 3.723 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2548/0.2548, allocations: 44.92 MB / 349.6 MB, free: 1.738 MB / 270.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001973/0.001973, allocations: 63.03 kB / 491.8 MB, free: 30.14 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1205, allocations: 64.26 MB / 0.543 GB, free: 4.133 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003884/0.1244, allocations: 2.245 MB / 0.5452 GB, free: 1.867 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001543/0.1259, allocations: 0.7403 MB / 0.5459 GB, free: 1.121 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001517/0.1261, allocations: 4 kB / 0.5459 GB, free: 1.117 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002266/0.1263, allocations: 35.59 kB / 0.5459 GB, free: 1.082 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001621/0.1265, allocations: 75.39 kB / 0.546 GB, free: 1.008 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004411/0.1269, allocations: 131.8 kB / 0.5461 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004301/0.1273, allocations: 339.2 kB / 0.5465 GB, free: 0.543 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001731/0.1275, allocations: 64.81 kB / 0.5465 GB, free: 484 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002267/0.1277, allocations: 143.6 kB / 0.5467 GB, free: 340 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002534/0.128, allocations: 159.3 kB / 0.5468 GB, free: 180 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.699e-05/0.128, allocations: 28 kB / 0.5468 GB, free: 152 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000153/0.1282, allocations: 75.94 kB / 0.5469 GB, free: 76 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.151e-05/0.1283, allocations: 63.81 kB / 0.547 GB, free: 12 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001556/0.1284, allocations: 131.4 kB / 0.5471 GB, free: 15.88 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004952/0.1289, allocations: 346.6 kB / 0.5474 GB, free: 15.54 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.1289, allocations: 0 / 0.5474 GB, free: 15.54 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1289, allocations: 4 kB / 0.5474 GB, free: 15.54 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.1289, allocations: 0 / 0.5474 GB, free: 15.54 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0009983/0.1299, allocations: 0.5572 MB / 0.548 GB, free: 14.93 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.13, allocations: 8.031 kB / 0.548 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.586e-05/0.13, allocations: 54.73 kB / 0.548 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.847e-05/0.1301, allocations: 28.8 kB / 0.5481 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004308/0.1305, allocations: 263.8 kB / 0.5483 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.175e-05/0.1306, allocations: 16.81 kB / 0.5483 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.342e-05/0.1306, allocations: 20.38 kB / 0.5484 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005395/0.1312, allocations: 275.2 kB / 0.5486 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/0.1312, allocations: 0 / 0.5486 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.745e-05/0.1312, allocations: 8 kB / 0.5486 GB, free: 14.22 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.1312, allocations: 4 kB / 0.5486 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004993/0.1317, allocations: 241.6 kB / 0.5489 GB, free: 13.98 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001464/0.1332, allocations: 0.7247 MB / 0.5496 GB, free: 13.2 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005565/0.1337, allocations: 226.5 kB / 0.5498 GB, free: 12.97 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002578/0.134, allocations: 124.8 kB / 0.5499 GB, free: 12.85 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.903e-05/0.134, allocations: 7.938 kB / 0.5499 GB, free: 12.84 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.441e-05/0.134, allocations: 30.56 kB / 0.5499 GB, free: 12.8 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.074e-06/0.134, allocations: 0 / 0.5499 GB, free: 12.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.003265/0.1373, allocations: 1.459 MB / 0.5514 GB, free: 11.23 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.074e-05/0.1374, allocations: 55.41 kB / 0.5514 GB, free: 11.16 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002266/0.1376, allocations: 199.2 kB / 0.5516 GB, free: 10.96 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.82e-05/0.1376, allocations: 33.7 kB / 0.5516 GB, free: 10.92 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.1377, allocations: 140.9 kB / 0.5518 GB, free: 10.78 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/0.1378, allocations: 115 kB / 0.5519 GB, free: 10.66 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001251/0.138, allocations: 65.59 kB / 0.5519 GB, free: 10.59 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.1381, allocations: 342.8 kB / 0.5523 GB, free: 10.25 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002607/0.1384, allocations: 123.9 kB / 0.5524 GB, free: 10.13 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002965/0.1387, allocations: 163.4 kB / 0.5525 GB, free: 9.957 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004631/0.1392, allocations: 255.2 kB / 0.5528 GB, free: 9.695 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.1392, allocations: 0 / 0.5528 GB, free: 9.695 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008517/0.14, allocations: 429.9 kB / 0.5532 GB, free: 9.266 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.14, allocations: 12 kB / 0.5532 GB, free: 9.254 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.14, allocations: 0 / 0.5532 GB, free: 9.254 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005605/0.1406, allocations: 240.7 kB / 0.5534 GB, free: 9.016 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002337/0.1408, allocations: 55.97 kB / 0.5535 GB, free: 8.961 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008591/0.1417, allocations: 0.7587 MB / 0.5542 GB, free: 8.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002635/0.142, allocations: 36.02 kB / 0.5543 GB, free: 8.145 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.237e-05/0.142, allocations: 15.98 kB / 0.5543 GB, free: 8.129 MB / 414.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.0001807/0.1422, allocations: 141.8 kB / 0.5544 GB, free: 7.98 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.997e-05/0.1422, allocations: 23.8 kB / 0.5544 GB, free: 7.957 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.034e-05/0.1423, allocations: 38.66 kB / 0.5545 GB, free: 7.922 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.758e-06/0.1423, allocations: 0 / 0.5545 GB, free: 7.922 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/0.1423, allocations: 7.984 kB / 0.5545 GB, free: 7.914 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.1423, allocations: 3.984 kB / 0.5545 GB, free: 7.91 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001704/0.144, allocations: 0.948 MB / 0.5554 GB, free: 6.895 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.144, allocations: 0 / 0.5554 GB, free: 6.895 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002412/0.1443, allocations: 43.97 kB / 0.5555 GB, free: 6.852 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004282/0.1447, allocations: 224.7 kB / 0.5557 GB, free: 6.629 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.904e-05/0.1447, allocations: 11.98 kB / 0.5557 GB, free: 6.617 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007171/0.1455, allocations: 0.7084 MB / 0.5564 GB, free: 5.883 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1455, allocations: 0 / 0.5564 GB, free: 5.883 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001234/0.1467, allocations: 0.6304 MB / 0.557 GB, free: 5.23 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001812/0.1469, allocations: 129 kB / 0.5571 GB, free: 5.086 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.916e-05/0.1469, allocations: 19.88 kB / 0.5571 GB, free: 5.066 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002416/0.1472, allocations: 36.02 kB / 0.5572 GB, free: 5.031 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001277/0.1473, allocations: 47.92 kB / 0.5572 GB, free: 4.984 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.581e-05/0.1473, allocations: 11.98 kB / 0.5572 GB, free: 4.973 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001432/0.1475, allocations: 144.5 kB / 0.5574 GB, free: 4.832 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1475, allocations: 0 / 0.5574 GB, free: 4.832 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003793/0.1479, allocations: 75.94 kB / 0.5574 GB, free: 4.758 MB / 414.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.001662/0.1495, allocations: 1.194 MB / 0.5586 GB, free: 3.531 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007709/0.1503, allocations: 307.8 kB / 0.5589 GB, free: 3.23 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.1503, allocations: 8 kB / 0.5589 GB, free: 3.223 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003429/0.1506, allocations: 152.1 kB / 0.559 GB, free: 3.074 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004148/0.151, allocations: 36.12 kB / 0.5591 GB, free: 3.043 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005291/0.1563, allocations: 3.097 MB / 0.5621 GB, free: 15.82 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004077/0.1567, allocations: 0.7525 MB / 0.5628 GB, free: 15.04 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001151/0.1569, allocations: 18.3 kB / 0.5629 GB, free: 15.02 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001164/0.157, allocations: 71.41 kB / 0.5629 GB, free: 14.95 MB / 430.1 MB Notification: Performance of SimCode: time 8.92e-07/0.157, allocations: 0 / 0.5629 GB, free: 14.95 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03575/0.1927, allocations: 7.629 MB / 0.5704 GB, free: 7.477 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.53/12.72, allocations: 6.328 kB / 0.5704 GB, free: 7.473 MB / 430.1 MB " [Timeout remaining time 647] (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 --stepSize=0.000219912 --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) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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.019920208957046]