Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.002167/0.002167, allocations: 118.8 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.002547/0.002547, 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.459/1.459, allocations: 230.5 MB / 255.4 MB, free: 15.02 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.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") [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.001895/0.001895, allocations: 67.83 kB / 374.7 MB, free: 9.781 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1086, allocations: 53.31 MB / 428 MB, free: 4.375 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003547/0.1122, allocations: 2.053 MB / 430.1 MB, free: 2.309 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001128/0.1133, allocations: 0.6154 MB / 430.7 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001118/0.1134, allocations: 7.938 kB / 430.7 MB, free: 1.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001294/0.1135, allocations: 15.8 kB / 430.7 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001703/0.1137, allocations: 31.72 kB / 430.8 MB, free: 1.633 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002949/0.114, allocations: 75.73 kB / 430.8 MB, free: 1.559 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002003/0.1142, allocations: 127.5 kB / 431 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001419/0.1143, allocations: 37.88 kB / 431 MB, free: 1.395 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.98e-05/0.1144, allocations: 51.78 kB / 431 MB, free: 1.344 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.797e-05/0.1145, allocations: 67.69 kB / 431.1 MB, free: 1.277 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.537e-05/0.1145, allocations: 8 kB / 431.1 MB, free: 1.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.355e-05/0.1146, allocations: 12 kB / 431.1 MB, free: 1.258 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.514e-05/0.1146, allocations: 31.92 kB / 431.2 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.489e-05/0.1147, allocations: 67.59 kB / 431.2 MB, free: 1.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002298/0.1149, allocations: 155.2 kB / 431.4 MB, free: 1.008 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1149, allocations: 0 / 431.4 MB, free: 1.008 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1149, allocations: 0 / 431.4 MB, free: 1.008 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.1149, allocations: 0 / 431.4 MB, free: 1.008 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006486/0.1156, allocations: 460.9 kB / 431.8 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.1156, allocations: 8.031 kB / 431.8 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.149e-05/0.1157, allocations: 24.73 kB / 431.9 MB, free: 492 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002814/0.116, allocations: 220.1 kB / 432.1 MB, free: 232 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.642e-05/0.116, allocations: 8.375 kB / 432.1 MB, free: 224 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.448e-05/0.116, allocations: 16.38 kB / 432.1 MB, free: 208 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2371/0.3531, allocations: 256.1 kB / 432.3 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.597e-05/0.3531, allocations: 3.422 kB / 432.4 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.927e-05/0.3532, allocations: 4.906 kB / 432.4 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/0.3532, allocations: 5.281 kB / 432.4 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003237/0.3535, allocations: 86.75 kB / 432.4 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007105/0.3542, allocations: 0.5956 MB / 433 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003671/0.3546, allocations: 141.2 kB / 433.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001691/0.3548, allocations: 70.34 kB / 433.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.553e-05/0.3548, allocations: 10.17 kB / 433.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.001e-05/0.3548, allocations: 41.56 kB / 433.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 3.126e-06/0.3548, allocations: 1.453 kB / 433.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.000559/0.3554, allocations: 182.6 kB / 433.5 MB, free: 10.76 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.988e-05/0.3554, allocations: 111.4 kB / 433.6 MB, free: 10.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000132/0.3556, allocations: 156.6 kB / 433.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.255e-05/0.3556, allocations: 37.02 kB / 433.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.206e-05/0.3556, allocations: 117.8 kB / 433.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.286e-05/0.3556, allocations: 30.03 kB / 433.9 MB, free: 10.4 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.914e-05/0.3557, allocations: 37.58 kB / 434 MB, free: 10.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.599e-05/0.3558, allocations: 320.1 kB / 434.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001129/0.3559, allocations: 35.88 kB / 434.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001634/0.356, allocations: 137.9 kB / 434.4 MB, free: 9.941 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002808/0.3563, allocations: 188.1 kB / 434.6 MB, free: 9.816 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.3563, allocations: 5.156 kB / 434.6 MB, free: 9.816 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003575/0.3567, allocations: 197.9 kB / 434.8 MB, free: 9.777 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.3567, allocations: 7.594 kB / 434.8 MB, free: 9.777 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.3567, allocations: 4.281 kB / 434.8 MB, free: 9.777 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.358e-05/0.3567, allocations: 6.359 kB / 434.8 MB, free: 9.777 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000156/0.3569, allocations: 47.25 kB / 434.9 MB, free: 9.777 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.262e-05/0.3569, allocations: 12.23 kB / 434.9 MB, free: 9.777 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001007/0.357, allocations: 19.09 kB / 434.9 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.273e-05/0.357, allocations: 10.81 kB / 434.9 MB, free: 9.773 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 8.651e-05/0.3571, allocations: 136.2 kB / 435.1 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001379/0.3572, allocations: 92.98 kB / 435.2 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.845e-05/0.3573, allocations: 17.62 kB / 435.2 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.3573, allocations: 7.656 kB / 435.2 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.3573, allocations: 4.656 kB / 435.2 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.3573, allocations: 1.156 kB / 435.2 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002387/0.3576, allocations: 217.5 kB / 435.4 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.3576, allocations: 1.812 kB / 435.4 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001663/0.3577, allocations: 36.55 kB / 435.4 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.3577, allocations: 1.531 kB / 435.4 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.3578, allocations: 10 kB / 435.4 MB, free: 9.414 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.3578, allocations: 4 kB / 435.4 MB, free: 9.414 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3578, allocations: 0.6094 kB / 435.4 MB, free: 9.414 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004531/0.3582, allocations: 389.4 kB / 435.8 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.15e-05/0.3583, allocations: 103.3 kB / 435.9 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.405e-05/0.3583, allocations: 2.812 kB / 435.9 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001354/0.3584, allocations: 9.859 kB / 435.9 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.7e-05/0.3585, allocations: 8.562 kB / 435.9 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.025e-05/0.3585, allocations: 6 kB / 436 MB, free: 9.082 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.361e-05/0.3586, allocations: 123.6 kB / 436.1 MB, free: 9.004 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3586, allocations: 1.156 kB / 436.1 MB, free: 9.004 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003203/0.3589, allocations: 27.67 kB / 436.1 MB, free: 9 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 9.738e-05/0.359, allocations: 114.4 kB / 436.2 MB, free: 8.902 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000331/0.3593, allocations: 117 kB / 436.3 MB, free: 8.891 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.3593, allocations: 0.9375 kB / 436.3 MB, free: 8.891 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.676e-05/0.3594, allocations: 33.78 kB / 436.4 MB, free: 8.883 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005147/0.3599, allocations: 65.77 kB / 436.4 MB, free: 8.879 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007087/0.3606, allocations: 441.8 kB / 436.9 MB, free: 8.578 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001749/0.3608, allocations: 0.7231 MB / 437.6 MB, free: 7.879 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.248e-05/0.3609, allocations: 16 kB / 437.6 MB, free: 7.871 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3609, allocations: 0 / 437.6 MB, free: 7.871 MB / 350.1 MB Notification: Performance of Templates: time 0.004001/0.3649, allocations: 1.645 MB / 439.2 MB, free: 7.758 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.859477140009403]