Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.0009926/0.0009926, allocations: 95.5 kB / 21.2 MB, free: 3.371 MB / 18.57 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.001606/0.001606, allocations: 160.5 kB / 24.56 MB, free: 16 kB / 18.57 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 0.9954/0.9954, allocations: 177 MB / 204.8 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 179] 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.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.422e-06/1.422e-06, allocations: 0 / 272.9 MB, free: 1.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.327e-05/2.47e-05, allocations: 2.312 kB / 272.9 MB, free: 1.477 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.002484/0.002509, allocations: 2.112 MB / 275 MB, free: 15.35 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007456/0.003254, allocations: 0.5335 MB / 275.5 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.881e-05/0.003353, allocations: 0 / 275.5 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001094/0.003463, allocations: 19.8 kB / 275.5 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.157e-05/0.003524, allocations: 27.73 kB / 275.6 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002567/0.003781, allocations: 55.81 kB / 275.6 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001549/0.003936, allocations: 139.4 kB / 275.8 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001301/0.004066, allocations: 37.97 kB / 275.8 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001002/0.004166, allocations: 71.88 kB / 275.9 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.53e-05/0.004241, allocations: 43.81 kB / 275.9 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.247e-05/0.004264, allocations: 8 kB / 275.9 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.576e-05/0.00428, allocations: 12 kB / 275.9 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.448e-05/0.004304, allocations: 27.91 kB / 276 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.832e-05/0.004342, allocations: 39.91 kB / 276 MB, free: 14.33 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001609/0.004503, allocations: 99.58 kB / 276.1 MB, free: 14.23 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.485e-06/0.004506, allocations: 0 / 276.1 MB, free: 14.23 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.004507, allocations: 0 / 276.1 MB, free: 14.23 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.004512, allocations: 0 / 276.1 MB, free: 14.23 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.000475/0.004987, allocations: 456 kB / 276.5 MB, free: 13.75 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.005029, allocations: 11.98 kB / 276.6 MB, free: 13.74 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.116e-05/0.00508, allocations: 28.83 kB / 276.6 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001746/0.005255, allocations: 160.4 kB / 276.7 MB, free: 13.53 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.255e-05/0.005268, allocations: 12.38 kB / 276.8 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.162e-05/0.005299, allocations: 16.33 kB / 276.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003175/0.005617, allocations: 220.7 kB / 277 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.00563, allocations: 4.188 kB / 277 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.123e-05/0.005641, allocations: 384 / 277 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.198e-06/0.00565, allocations: 7.938 kB / 277 MB, free: 13.24 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.706e-05/0.005717, allocations: 39.91 kB / 277 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005069/0.006224, allocations: 0.6484 MB / 277.7 MB, free: 12.5 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002111/0.006435, allocations: 141.4 kB / 277.8 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.474e-05/0.00649, allocations: 51.14 kB / 277.9 MB, free: 12.26 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.241e-05/0.006512, allocations: 7.938 kB / 277.9 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.116e-05/0.006534, allocations: 37.39 kB / 277.9 MB, free: 12.21 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.132e-06/0.006535, allocations: 0 / 277.9 MB, free: 12.21 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002239/0.006759, allocations: 121.8 kB / 278 MB, free: 12.08 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.119e-05/0.00682, allocations: 110.9 kB / 278.1 MB, free: 11.95 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.468e-05/0.006914, allocations: 206 kB / 278.3 MB, free: 11.73 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.337e-05/0.006928, allocations: 29.7 kB / 278.4 MB, free: 11.7 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.296e-05/0.006991, allocations: 154.8 kB / 278.5 MB, free: 11.54 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.665e-05/0.007007, allocations: 23.8 kB / 278.5 MB, free: 11.52 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.593e-05/0.007043, allocations: 35.36 kB / 278.6 MB, free: 11.48 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.007148, allocations: 0.4961 MB / 279.1 MB, free: 10.97 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.327e-05/0.007171, allocations: 4 kB / 279.1 MB, free: 10.96 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.452e-05/0.007226, allocations: 97.2 kB / 279.2 MB, free: 10.83 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.56e-05/0.007312, allocations: 109.4 kB / 279.3 MB, free: 10.69 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.007314, allocations: 0 / 279.3 MB, free: 10.69 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001091/0.007423, allocations: 93.47 kB / 279.4 MB, free: 10.59 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.007438, allocations: 14.64 kB / 279.4 MB, free: 10.58 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.007443, allocations: 12.09 kB / 279.4 MB, free: 10.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/0.007461, allocations: 4 kB / 279.4 MB, free: 10.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.593e-05/0.007537, allocations: 27.98 kB / 279.4 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.007544, allocations: 4 kB / 279.4 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.468e-05/0.007579, allocations: 7.938 kB / 279.4 MB, free: 10.53 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.332e-06/0.007585, allocations: 4 kB / 279.4 MB, free: 10.52 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (12): * Single equations (assignments): 12 * 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 7.34e-05/0.007659, allocations: 168.5 kB / 279.6 MB, free: 10.35 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001187/0.007777, allocations: 97.69 kB / 279.7 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.251e-05/0.00781, allocations: 20.77 kB / 279.7 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.007812, allocations: 4 kB / 279.7 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.007817, allocations: 4 kB / 279.7 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.247e-06/0.00782, allocations: 0 / 279.7 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001509/0.007971, allocations: 152.5 kB / 279.9 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.007973, allocations: 0 / 279.9 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001166/0.00809, allocations: 39.97 kB / 279.9 MB, free: 9.996 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.008092, allocations: 0 / 279.9 MB, free: 9.996 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.775e-05/0.00811, allocations: 8 kB / 279.9 MB, free: 9.988 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.008111, allocations: 0 / 279.9 MB, free: 9.988 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.008114, allocations: 7.938 kB / 279.9 MB, free: 9.98 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002639/0.008378, allocations: 425.5 kB / 280.4 MB, free: 9.543 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.537e-05/0.008393, allocations: 11.91 kB / 280.4 MB, free: 9.531 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.956e-05/0.008412, allocations: 8 kB / 280.4 MB, free: 9.523 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.933e-05/0.008472, allocations: 0 / 280.4 MB, free: 9.523 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.209e-05/0.008514, allocations: 11.98 kB / 280.4 MB, free: 9.512 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.55e-06/0.008519, allocations: 4 kB / 280.4 MB, free: 9.508 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.905e-05/0.008568, allocations: 143.1 kB / 280.5 MB, free: 9.367 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.008569, allocations: 0 / 280.5 MB, free: 9.367 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001878/0.008756, allocations: 31.88 kB / 280.6 MB, free: 9.336 MB / 266.7 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.73e-05/0.008854, allocations: 107.3 kB / 280.7 MB, free: 9.223 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001341/0.008988, allocations: 67.53 kB / 280.7 MB, free: 9.152 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.522e-06/0.008989, allocations: 0 / 280.7 MB, free: 9.152 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.019e-05/0.009009, allocations: 15.69 kB / 280.7 MB, free: 9.133 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003431/0.009353, allocations: 59.03 kB / 280.8 MB, free: 9.074 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008043/0.01016, allocations: 371.1 kB / 281.2 MB, free: 8.676 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.088e-05/0.01021, allocations: 75.33 kB / 281.2 MB, free: 8.582 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.229e-05/0.01024, allocations: 8.922 kB / 281.3 MB, free: 8.574 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.89e-05/0.01028, allocations: 20.48 kB / 281.3 MB, free: 8.551 MB / 266.7 MB Notification: Performance of SimCode: time 1.092e-06/0.01028, allocations: 0 / 281.3 MB, free: 8.551 MB / 266.7 MB Notification: Performance of Templates: time 0.00317/0.01345, allocations: 1.336 MB / 282.6 MB, free: 7.266 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7512818230316043]