Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001374/0.001374, allocations: 81 kB / 21.25 MB, free: 0.5469 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.00146/0.00146, allocations: 163 kB / 24.5 MB, free: 3.715 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.51/1.51, allocations: 177.1 MB / 204.7 MB, free: 8.961 MB / 190.1 MB " [Timeout remaining time 178] 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(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002687/0.002687, allocations: 63.03 kB / 325.5 MB, free: 192 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1188, allocations: 53.38 MB / 378.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.00367/0.1225, allocations: 1.987 MB / 380.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001115/0.1236, allocations: 0.5376 MB / 381.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000134/0.1237, allocations: 7.938 kB / 381.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001105/0.1238, allocations: 15.8 kB / 381.4 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000167/0.124, allocations: 31.78 kB / 381.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002987/0.1243, allocations: 51.81 kB / 381.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002257/0.1245, allocations: 123.5 kB / 381.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001515/0.1247, allocations: 41.59 kB / 381.7 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.12e-05/0.1248, allocations: 47.86 kB / 381.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.339e-05/0.1249, allocations: 51.7 kB / 381.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.053e-05/0.1249, allocations: 11.98 kB / 381.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.279e-05/0.1249, allocations: 16 kB / 381.8 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.389e-05/0.125, allocations: 23.92 kB / 381.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.495e-05/0.125, allocations: 47.73 kB / 381.9 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000226/0.1252, allocations: 131.3 kB / 382 MB, free: 12.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1253, allocations: 0 / 382 MB, free: 12.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1253, allocations: 0 / 382 MB, free: 12.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.641e-06/0.1253, allocations: 0 / 382 MB, free: 12.34 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.0006172/0.1259, allocations: 365.8 kB / 382.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.1259, allocations: 11.98 kB / 382.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.855e-05/0.126, allocations: 20.84 kB / 382.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002231/0.1262, allocations: 146.3 kB / 382.5 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.047e-05/0.1262, allocations: 12.38 kB / 382.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.297e-05/0.1262, allocations: 16.36 kB / 382.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005005/0.1267, allocations: 246.8 kB / 382.8 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.1268, allocations: 4 kB / 382.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.861e-05/0.1268, allocations: 8 kB / 382.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.1268, allocations: 0 / 382.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002702/0.1271, allocations: 99.73 kB / 382.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000614/0.1277, allocations: 492.5 kB / 383.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003462/0.128, allocations: 143.9 kB / 383.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001577/0.1282, allocations: 70.64 kB / 383.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.604e-05/0.1282, allocations: 4 kB / 383.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.851e-05/0.1282, allocations: 38.55 kB / 383.7 MB, free: 10.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.262e-06/0.1282, allocations: 0 / 383.7 MB, free: 10.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005427/0.1288, allocations: 181.4 kB / 383.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.385e-05/0.1289, allocations: 114.7 kB / 383.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001158/0.129, allocations: 136.6 kB / 384.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.845e-05/0.129, allocations: 29.83 kB / 384.1 MB, free: 10.03 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.672e-05/0.1291, allocations: 116.1 kB / 384.2 MB, free: 9.914 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.31e-05/0.1291, allocations: 31.78 kB / 384.2 MB, free: 9.883 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.612e-05/0.1292, allocations: 33.72 kB / 384.3 MB, free: 9.844 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.1293, allocations: 318.8 kB / 384.6 MB, free: 9.523 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001163/0.1294, allocations: 39.97 kB / 384.6 MB, free: 9.484 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001834/0.1296, allocations: 133.7 kB / 384.8 MB, free: 9.305 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003457/0.1299, allocations: 193.5 kB / 384.9 MB, free: 9.066 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.1299, allocations: 0 / 384.9 MB, free: 9.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004207/0.1304, allocations: 201.5 kB / 385.1 MB, free: 8.863 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.48e-05/0.1304, allocations: 10.66 kB / 385.2 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.408e-05/0.1304, allocations: 4 kB / 385.2 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.246e-05/0.1304, allocations: 4 kB / 385.2 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001645/0.1306, allocations: 43.92 kB / 385.2 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.892e-05/0.1306, allocations: 11.98 kB / 385.2 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001175/0.1307, allocations: 19.89 kB / 385.2 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.496e-05/0.1307, allocations: 11.94 kB / 385.2 MB, free: 8.762 MB / 350.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.0001277/0.1309, allocations: 130 kB / 385.4 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001562/0.131, allocations: 93.83 kB / 385.5 MB, free: 8.527 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.198e-05/0.1311, allocations: 17.02 kB / 385.5 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.1311, allocations: 7.984 kB / 385.5 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.1311, allocations: 0 / 385.5 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.1311, allocations: 0 / 385.5 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002365/0.1313, allocations: 141.2 kB / 385.6 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.1313, allocations: 4 kB / 385.6 MB, free: 8.332 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001778/0.1315, allocations: 35.92 kB / 385.7 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.1315, allocations: 3.938 kB / 385.7 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.346e-05/0.1315, allocations: 8 kB / 385.7 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/0.1315, allocations: 4 kB / 385.7 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.1316, allocations: 3.984 kB / 385.7 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005805/0.1321, allocations: 375.4 kB / 386.1 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.443e-05/0.1322, allocations: 15.88 kB / 386.1 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.183e-05/0.1322, allocations: 4 kB / 386.1 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001379/0.1323, allocations: 11.98 kB / 386.1 MB, free: 7.859 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.016e-05/0.1324, allocations: 4.047 kB / 386.1 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.384e-06/0.1324, allocations: 11.94 kB / 386.1 MB, free: 7.844 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.248e-05/0.1324, allocations: 103.3 kB / 386.2 MB, free: 7.742 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1324, allocations: 0 / 386.2 MB, free: 7.742 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003196/0.1328, allocations: 27.94 kB / 386.2 MB, free: 7.715 MB / 350.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.0001117/0.1329, allocations: 99.25 kB / 386.3 MB, free: 7.609 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003273/0.1332, allocations: 123.5 kB / 386.4 MB, free: 7.492 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.1332, allocations: 4 kB / 386.5 MB, free: 7.488 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.149e-05/0.1333, allocations: 23.92 kB / 386.5 MB, free: 7.465 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004706/0.1338, allocations: 58.94 kB / 386.5 MB, free: 7.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000731/0.1345, allocations: 394.7 kB / 386.9 MB, free: 6.992 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001069/0.1346, allocations: 109.7 kB / 387 MB, free: 6.867 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.632e-05/0.1346, allocations: 13.5 kB / 387 MB, free: 6.852 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4e-05/0.1347, allocations: 16.5 kB / 387.1 MB, free: 6.836 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1347, allocations: 0 / 387.1 MB, free: 6.836 MB / 350.1 MB Notification: Performance of Templates: time 0.004474/0.1392, allocations: 1.275 MB / 388.3 MB, free: 5.59 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 4.413415073999204]