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.00132/0.00132, allocations: 81.81 kB / 21.42 MB, free: 3.07 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.0009679/0.0009679, allocations: 160.3 kB / 24.82 MB, free: 9.266 MB / 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 1.017/1.017, allocations: 177 MB / 205.1 MB, free: 5.488 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.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 1.614e-06/1.614e-06, allocations: 0 / 273.3 MB, free: 1.273 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.092e-05/2.253e-05, allocations: 5.266 kB / 273.3 MB, free: 1.27 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003199/0.003222, allocations: 2.058 MB / 275.4 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009427/0.004164, allocations: 0.5491 MB / 275.9 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001091/0.004274, allocations: 4 kB / 275.9 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001119/0.004385, allocations: 19.8 kB / 275.9 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001411/0.004527, allocations: 23.72 kB / 276 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000224/0.004751, allocations: 59.81 kB / 276 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000167/0.004918, allocations: 127.5 kB / 276.1 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001319/0.00505, allocations: 41.59 kB / 276.2 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001265/0.005176, allocations: 71.81 kB / 276.2 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.99e-05/0.005266, allocations: 43.88 kB / 276.3 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.843e-05/0.005294, allocations: 12 kB / 276.3 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.914e-05/0.005314, allocations: 12 kB / 276.3 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.269e-05/0.005346, allocations: 31.84 kB / 276.3 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.771e-05/0.005394, allocations: 39.91 kB / 276.4 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001668/0.005561, allocations: 95.52 kB / 276.5 MB, free: 14.07 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.004e-06/0.005563, allocations: 0 / 276.5 MB, free: 14.07 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.82e-07/0.005563, allocations: 0 / 276.5 MB, free: 14.07 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.646e-06/0.005567, allocations: 0 / 276.5 MB, free: 14.07 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.000485/0.006052, allocations: 452.1 kB / 276.9 MB, free: 13.59 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.006091, allocations: 11.98 kB / 276.9 MB, free: 13.58 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.257e-05/0.006144, allocations: 28.84 kB / 277 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001695/0.006313, allocations: 156.4 kB / 277.1 MB, free: 13.37 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.351e-05/0.006327, allocations: 8.375 kB / 277.1 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.85e-05/0.006355, allocations: 12.38 kB / 277.1 MB, free: 13.35 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003226/0.006678, allocations: 224.7 kB / 277.4 MB, free: 13.1 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.006689, allocations: 192 / 277.4 MB, free: 13.1 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.459e-05/0.006704, allocations: 12.38 kB / 277.4 MB, free: 13.09 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.876e-06/0.006713, allocations: 3.938 kB / 277.4 MB, free: 13.08 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.136e-05/0.006784, allocations: 47.77 kB / 277.4 MB, free: 13.04 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005126/0.007297, allocations: 0.6329 MB / 278 MB, free: 12.35 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002049/0.007502, allocations: 137.3 kB / 278.2 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.603e-05/0.007558, allocations: 47.14 kB / 278.2 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.662e-05/0.007584, allocations: 7.984 kB / 278.2 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.77e-05/0.007612, allocations: 41.33 kB / 278.3 MB, free: 12.06 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.393e-06/0.007613, allocations: 4 kB / 278.3 MB, free: 12.05 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002392/0.007853, allocations: 113.5 kB / 278.4 MB, free: 11.94 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.294e-05/0.007916, allocations: 114.8 kB / 278.5 MB, free: 11.8 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.643e-05/0.008012, allocations: 188.8 kB / 278.7 MB, free: 11.6 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.405e-05/0.008026, allocations: 25.7 kB / 278.7 MB, free: 11.57 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.635e-05/0.008092, allocations: 158.8 kB / 278.9 MB, free: 11.41 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.427e-05/0.008117, allocations: 31.77 kB / 278.9 MB, free: 11.38 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.355e-05/0.00816, allocations: 27.38 kB / 278.9 MB, free: 11.34 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.008307, allocations: 0.4961 MB / 279.4 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.229e-05/0.008329, allocations: 11.92 kB / 279.4 MB, free: 10.82 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.731e-05/0.008386, allocations: 89.53 kB / 279.5 MB, free: 10.7 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001155/0.008502, allocations: 97.47 kB / 279.6 MB, free: 10.57 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.008504, allocations: 0 / 279.6 MB, free: 10.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001407/0.008645, allocations: 105.4 kB / 279.7 MB, free: 10.46 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.008658, allocations: 6.969 kB / 279.7 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.008664, allocations: 4 kB / 279.7 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.008677, allocations: 0 / 279.7 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.718e-05/0.008764, allocations: 27.92 kB / 279.8 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.008769, allocations: 4 kB / 279.8 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.244e-05/0.008821, allocations: 11.88 kB / 279.8 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.167e-06/0.00883, allocations: 8 kB / 279.8 MB, free: 10.41 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 8.79e-05/0.008918, allocations: 172.7 kB / 279.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001127/0.009031, allocations: 73.59 kB / 280 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.552e-05/0.009087, allocations: 16.78 kB / 280 MB, free: 10.13 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.009089, allocations: 0 / 280 MB, free: 10.13 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.009093, allocations: 4 kB / 280 MB, free: 10.13 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.009098, allocations: 7.922 kB / 280 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001886/0.009287, allocations: 121.2 kB / 280.2 MB, free: 9.977 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.009292, allocations: 8 kB / 280.2 MB, free: 9.969 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001158/0.009408, allocations: 31.98 kB / 280.2 MB, free: 9.938 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.00941, allocations: 0 / 280.2 MB, free: 9.938 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.299e-05/0.009423, allocations: 4 kB / 280.2 MB, free: 9.934 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.009427, allocations: 7.984 kB / 280.2 MB, free: 9.926 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.009428, allocations: 0 / 280.2 MB, free: 9.926 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002587/0.009687, allocations: 354.6 kB / 280.6 MB, free: 9.555 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.929e-05/0.009706, allocations: 15.84 kB / 280.6 MB, free: 9.539 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.599e-05/0.009722, allocations: 0 / 280.6 MB, free: 9.539 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001136/0.009836, allocations: 11.98 kB / 280.6 MB, free: 9.527 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.933e-05/0.009865, allocations: 4 kB / 280.6 MB, free: 9.523 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.733e-06/0.009872, allocations: 4.234 kB / 280.6 MB, free: 9.52 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.002e-05/0.009922, allocations: 135.2 kB / 280.7 MB, free: 9.387 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009922, allocations: 3.938 kB / 280.7 MB, free: 9.383 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003053/0.01023, allocations: 28.03 kB / 280.8 MB, free: 9.355 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 8.538e-05/0.01031, allocations: 103.2 kB / 280.9 MB, free: 9.246 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000118/0.01043, allocations: 71.44 kB / 280.9 MB, free: 9.172 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.272e-06/0.01043, allocations: 0 / 280.9 MB, free: 9.172 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.849e-05/0.01046, allocations: 19.62 kB / 281 MB, free: 9.148 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004278/0.01089, allocations: 47.53 kB / 281 MB, free: 9.102 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006709/0.01156, allocations: 346.8 kB / 281.3 MB, free: 8.727 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.89e-05/0.01162, allocations: 71.33 kB / 281.4 MB, free: 8.637 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.354e-05/0.01165, allocations: 8.969 kB / 281.4 MB, free: 8.629 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.914e-05/0.01173, allocations: 86.2 kB / 281.5 MB, free: 8.543 MB / 266.7 MB Notification: Performance of SimCode: time 6.51e-07/0.01173, allocations: 4 kB / 281.5 MB, free: 8.539 MB / 266.7 MB Notification: Performance of Templates: time 0.00362/0.01535, allocations: 1.296 MB / 282.8 MB, free: 7.277 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.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.778512729331851]