Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.001525/0.001525, allocations: 116.7 kB / 19.18 MB, free: 3.762 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.001862/0.001862, allocations: 210.6 kB / 22.13 MB, free: 0.8125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.448/1.448, allocations: 230.4 MB / 255.4 MB, free: 15.19 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001876/0.001876, allocations: 63.84 kB / 374.7 MB, free: 9.812 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1043, allocations: 53.31 MB / 428 MB, free: 4.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.00342/0.1077, allocations: 2.036 MB / 430.1 MB, free: 2.363 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000986/0.1087, allocations: 0.5687 MB / 430.6 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.206e-05/0.1088, allocations: 4 kB / 430.6 MB, free: 1.785 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.826e-05/0.1089, allocations: 15.8 kB / 430.7 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001221/0.109, allocations: 27.73 kB / 430.7 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002045/0.1092, allocations: 55.88 kB / 430.7 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001788/0.1094, allocations: 123.5 kB / 430.9 MB, free: 1.566 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001218/0.1095, allocations: 45.42 kB / 430.9 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.747e-05/0.1096, allocations: 47.8 kB / 431 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.608e-05/0.1097, allocations: 63.69 kB / 431 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.343e-05/0.1097, allocations: 8 kB / 431 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.368e-05/0.1098, allocations: 12 kB / 431 MB, free: 1.391 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.063e-05/0.1098, allocations: 23.92 kB / 431.1 MB, free: 1.367 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.804e-05/0.1099, allocations: 59.67 kB / 431.1 MB, free: 1.309 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001965/0.11, allocations: 127.4 kB / 431.2 MB, free: 1.184 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.1101, allocations: 0 / 431.2 MB, free: 1.184 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1101, allocations: 0 / 431.2 MB, free: 1.184 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.1101, allocations: 3.938 kB / 431.2 MB, free: 1.18 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006355/0.1107, allocations: 438.9 kB / 431.7 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.307e-05/0.1107, allocations: 12.03 kB / 431.7 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.761e-05/0.1108, allocations: 12.84 kB / 431.7 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002595/0.111, allocations: 212.1 kB / 431.9 MB, free: 444 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.517e-05/0.111, allocations: 8.375 kB / 431.9 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.913e-05/0.1111, allocations: 16.31 kB / 431.9 MB, free: 420 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004985/0.1116, allocations: 250.9 kB / 432.2 MB, free: 144 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/0.1116, allocations: 0 / 432.2 MB, free: 144 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.88e-05/0.1116, allocations: 11.98 kB / 432.2 MB, free: 132 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.1116, allocations: 0 / 432.2 MB, free: 132 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002643/0.1119, allocations: 87.88 kB / 432.3 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006814/0.1126, allocations: 0.5999 MB / 432.9 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003496/0.1129, allocations: 135.7 kB / 433 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001709/0.1131, allocations: 78.69 kB / 433.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.483e-05/0.1131, allocations: 8 kB / 433.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.986e-05/0.1131, allocations: 34.56 kB / 433.1 MB, free: 15.07 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.222e-06/0.1131, allocations: 4 kB / 433.1 MB, free: 15.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005423/0.1137, allocations: 181.4 kB / 433.3 MB, free: 14.89 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.385e-05/0.1138, allocations: 115.1 kB / 433.4 MB, free: 14.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001397/0.1139, allocations: 132.9 kB / 433.5 MB, free: 14.61 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.36e-05/0.1139, allocations: 29.7 kB / 433.6 MB, free: 14.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.354e-05/0.114, allocations: 111.9 kB / 433.7 MB, free: 14.46 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.864e-05/0.1141, allocations: 23.84 kB / 433.7 MB, free: 14.44 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.755e-05/0.1141, allocations: 37.7 kB / 433.7 MB, free: 14.39 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.1143, allocations: 322.8 kB / 434.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000121/0.1144, allocations: 39.97 kB / 434.1 MB, free: 14.03 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001926/0.1146, allocations: 133.6 kB / 434.2 MB, free: 13.85 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003135/0.1149, allocations: 193.5 kB / 434.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1149, allocations: 0 / 434.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003911/0.1153, allocations: 205.4 kB / 434.6 MB, free: 13.41 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.1153, allocations: 4 kB / 434.6 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.1153, allocations: 4 kB / 434.6 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.943e-05/0.1153, allocations: 8 kB / 434.6 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001722/0.1155, allocations: 47.91 kB / 434.7 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/0.1155, allocations: 4 kB / 434.7 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001039/0.1156, allocations: 23.94 kB / 434.7 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.353e-05/0.1156, allocations: 8 kB / 434.7 MB, free: 13.31 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001199/0.1158, allocations: 141.8 kB / 434.9 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001565/0.1159, allocations: 85.95 kB / 434.9 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.114e-05/0.116, allocations: 20.66 kB / 435 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-05/0.116, allocations: 3.984 kB / 435 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.116, allocations: 4.094 kB / 435 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.116, allocations: 3.938 kB / 435 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000286/0.1163, allocations: 209.5 kB / 435.2 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-06/0.1163, allocations: 0 / 435.2 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001813/0.1165, allocations: 35.92 kB / 435.2 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.1165, allocations: 8 kB / 435.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.575e-05/0.1165, allocations: 7.984 kB / 435.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1165, allocations: 0 / 435.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.1165, allocations: 4 kB / 435.2 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005618/0.1171, allocations: 375.7 kB / 435.6 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.014e-05/0.1171, allocations: 96.97 kB / 435.7 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.266e-05/0.1171, allocations: 7.984 kB / 435.7 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001344/0.1173, allocations: 8 kB / 435.7 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.056e-05/0.1173, allocations: 11.92 kB / 435.7 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.646e-06/0.1173, allocations: 4 kB / 435.7 MB, free: 12.19 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.165e-05/0.1174, allocations: 101.8 kB / 435.8 MB, free: 12.09 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1174, allocations: 0 / 435.8 MB, free: 12.09 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003104/0.1177, allocations: 24 kB / 435.8 MB, free: 12.07 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001082/0.1178, allocations: 103.3 kB / 435.9 MB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003314/0.1182, allocations: 120.5 kB / 436.1 MB, free: 11.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.1182, allocations: 0 / 436.1 MB, free: 11.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001012/0.1183, allocations: 31.98 kB / 436.1 MB, free: 11.81 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004656/0.1187, allocations: 59.88 kB / 436.2 MB, free: 11.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007438/0.1195, allocations: 411.2 kB / 436.6 MB, free: 11.31 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003626/0.1198, allocations: 0.7201 MB / 437.3 MB, free: 10.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.394e-05/0.1199, allocations: 15.44 kB / 437.3 MB, free: 10.55 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1199, allocations: 3.938 kB / 437.3 MB, free: 10.55 MB / 366.1 MB Notification: Performance of Templates: time 0.003411/0.1233, allocations: 1.547 MB / 438.8 MB, free: 9.008 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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: 6.837193071842194]