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: translateModel(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") translateModel(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001403/0.001402, allocations: 117 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001442/0.001442, allocations: 204.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2075/0.2075, allocations: 46.11 MB / 344.9 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 80.94 kB / 419 MB, free: 19.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09885/0.1002, allocations: 62.44 MB / 481.5 MB, free: 4.574 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003353/0.1036, allocations: 2.358 MB / 483.8 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001222/0.1048, allocations: 0.8997 MB / 484.7 MB, free: 1.297 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.396e-05/0.1049, allocations: 4 kB / 484.7 MB, free: 1.293 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002067/0.1051, allocations: 63.5 kB / 484.8 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001554/0.1053, allocations: 71.41 kB / 484.9 MB, free: 1.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002879/0.1056, allocations: 147.6 kB / 485 MB, free: 1.016 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003157/0.1059, allocations: 351.3 kB / 485.3 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001556/0.1061, allocations: 80.92 kB / 485.4 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002136/0.1063, allocations: 159.5 kB / 485.6 MB, free: 444 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002022/0.1065, allocations: 167.3 kB / 485.7 MB, free: 276 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.065e-05/0.1066, allocations: 28 kB / 485.8 MB, free: 248 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001332/0.1067, allocations: 83.97 kB / 485.8 MB, free: 164 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.783e-05/0.1068, allocations: 71.8 kB / 485.9 MB, free: 92 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001463/0.1069, allocations: 139.4 kB / 486.1 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003636/0.1073, allocations: 374.8 kB / 486.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.1073, allocations: 0 / 486.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1073, allocations: 0 / 486.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.1073, allocations: 0 / 486.4 MB, free: 15.59 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.0008054/0.1082, allocations: 0.5926 MB / 487 MB, free: 14.95 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.07e-05/0.1082, allocations: 13.11 kB / 487 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001674/0.1084, allocations: 32.64 kB / 487.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002861/0.1087, allocations: 264.5 kB / 487.3 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.686e-05/0.1087, allocations: 16.94 kB / 487.3 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.761e-05/0.1088, allocations: 20.38 kB / 487.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004708/0.1092, allocations: 273 kB / 487.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.1093, allocations: 4 kB / 487.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.6e-05/0.1093, allocations: 8 kB / 487.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.1093, allocations: 8 kB / 487.6 MB, free: 14.28 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004813/0.1098, allocations: 230.1 kB / 487.9 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001209/0.111, allocations: 0.7405 MB / 488.6 MB, free: 13.26 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005146/0.1115, allocations: 238.4 kB / 488.8 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002375/0.1118, allocations: 136.8 kB / 489 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.117e-05/0.1118, allocations: 4 kB / 489 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.268e-05/0.1119, allocations: 38.5 kB / 489 MB, free: 12.83 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.373e-06/0.1119, allocations: 0 / 489 MB, free: 12.83 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.002872/0.1147, allocations: 1.422 MB / 490.4 MB, free: 11.29 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.416e-05/0.1148, allocations: 55.41 kB / 490.5 MB, free: 11.23 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001913/0.115, allocations: 211.7 kB / 490.7 MB, free: 11.01 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.421e-05/0.1151, allocations: 37.69 kB / 490.7 MB, free: 10.96 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.659e-05/0.1151, allocations: 136.6 kB / 490.9 MB, free: 10.83 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.947e-05/0.1152, allocations: 122.3 kB / 491 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001117/0.1154, allocations: 73.59 kB / 491.1 MB, free: 10.63 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.1155, allocations: 334.8 kB / 491.4 MB, free: 10.29 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002447/0.1157, allocations: 123.9 kB / 491.5 MB, free: 10.17 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002642/0.116, allocations: 155.3 kB / 491.7 MB, free: 10.01 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003999/0.1164, allocations: 244.1 kB / 491.9 MB, free: 9.758 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.1164, allocations: 3.938 kB / 491.9 MB, free: 9.754 MB / 366.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007773/0.1172, allocations: 425.7 kB / 492.3 MB, free: 9.328 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.1172, allocations: 8 kB / 492.3 MB, free: 9.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.1172, allocations: 3.938 kB / 492.3 MB, free: 9.316 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004188/0.1177, allocations: 192.8 kB / 492.5 MB, free: 9.125 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002099/0.1179, allocations: 55.91 kB / 492.6 MB, free: 9.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006508/0.1185, allocations: 0.7281 MB / 493.3 MB, free: 8.316 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002337/0.1188, allocations: 40.08 kB / 493.3 MB, free: 8.277 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.757e-05/0.1188, allocations: 16 kB / 493.3 MB, free: 8.262 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.0001346/0.119, allocations: 149.3 kB / 493.5 MB, free: 8.109 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.584e-05/0.119, allocations: 23.72 kB / 493.5 MB, free: 8.086 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.619e-05/0.1191, allocations: 38.64 kB / 493.6 MB, free: 8.047 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.1191, allocations: 4 kB / 493.6 MB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.1191, allocations: 0 / 493.6 MB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.1191, allocations: 7.984 kB / 493.6 MB, free: 8.035 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001472/0.1206, allocations: 0.9439 MB / 494.5 MB, free: 7.023 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.1206, allocations: 0 / 494.5 MB, free: 7.023 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002272/0.1209, allocations: 51.91 kB / 494.6 MB, free: 6.973 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003457/0.1212, allocations: 172.7 kB / 494.7 MB, free: 6.801 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.737e-05/0.1213, allocations: 15.98 kB / 494.7 MB, free: 6.785 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005899/0.1219, allocations: 0.685 MB / 495.4 MB, free: 6.074 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.1219, allocations: 3.938 kB / 495.4 MB, free: 6.07 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001029/0.1229, allocations: 0.6193 MB / 496.1 MB, free: 5.426 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001251/0.123, allocations: 124.8 kB / 496.2 MB, free: 5.285 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.312e-05/0.1231, allocations: 12 kB / 496.2 MB, free: 5.273 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002438/0.1234, allocations: 36.02 kB / 496.2 MB, free: 5.238 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001248/0.1235, allocations: 51.86 kB / 496.3 MB, free: 5.188 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.636e-05/0.1235, allocations: 15.98 kB / 496.3 MB, free: 5.172 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001255/0.1237, allocations: 149.5 kB / 496.4 MB, free: 5.027 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1237, allocations: 0 / 496.4 MB, free: 5.027 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003342/0.124, allocations: 72 kB / 496.5 MB, free: 4.957 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.0008165/0.1248, allocations: 369.1 kB / 496.9 MB, free: 4.707 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006422/0.1255, allocations: 311.7 kB / 497.2 MB, free: 4.402 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.1255, allocations: 4.125 kB / 497.2 MB, free: 4.398 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003124/0.1258, allocations: 155.9 kB / 497.3 MB, free: 4.246 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003673/0.1262, allocations: 45.47 kB / 497.4 MB, free: 4.207 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001669/0.1279, allocations: 0.7534 MB / 498.1 MB, free: 3.43 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002838/0.1282, allocations: 0.7564 MB / 498.9 MB, free: 2.648 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.524e-05/0.1283, allocations: 26.27 kB / 498.9 MB, free: 2.621 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.858e-05/0.1283, allocations: 23.44 kB / 498.9 MB, free: 2.598 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1283, allocations: 0 / 498.9 MB, free: 2.598 MB / 366.1 MB Notification: Performance of Templates: time 0.008324/0.1367, allocations: 5.125 MB / 0.4922 GB, free: 13.48 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > 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