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.001038/0.001038, allocations: 79.69 kB / 21.7 MB, free: 2.848 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.001086/0.001086, allocations: 168.3 kB / 24.99 MB, free: 8.219 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 0.9797/0.9797, allocations: 177 MB / 205.2 MB, free: 5.582 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.533e-06/1.533e-06, allocations: 0 / 273 MB, free: 1.77 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.673e-05/2.826e-05, allocations: 6.312 kB / 273 MB, free: 1.762 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003256/0.003284, allocations: 2.05 MB / 275 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007217/0.004006, allocations: 0.5491 MB / 275.6 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.813e-05/0.004094, allocations: 7.938 kB / 275.6 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 9.749e-05/0.004191, allocations: 15.8 kB / 275.6 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001252/0.004317, allocations: 23.73 kB / 275.6 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001877/0.004504, allocations: 59.8 kB / 275.7 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001682/0.004672, allocations: 127.5 kB / 275.8 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001483/0.004821, allocations: 45.53 kB / 275.8 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001093/0.00493, allocations: 79.81 kB / 275.9 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.886e-05/0.004999, allocations: 43.88 kB / 276 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.398e-05/0.005023, allocations: 8 kB / 276 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.431e-05/0.005037, allocations: 12 kB / 276 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.626e-05/0.005063, allocations: 23.91 kB / 276 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.253e-05/0.005106, allocations: 43.84 kB / 276 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001502/0.005256, allocations: 83.66 kB / 276.1 MB, free: 14.57 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.00526, allocations: 0 / 276.1 MB, free: 14.57 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.005261, allocations: 0 / 276.1 MB, free: 14.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.418e-06/0.005265, allocations: 3.938 kB / 276.1 MB, free: 14.57 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.0004165/0.005682, allocations: 456.1 kB / 276.6 MB, free: 14.09 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.472e-05/0.005716, allocations: 19.97 kB / 276.6 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.904e-05/0.005765, allocations: 24.84 kB / 276.6 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001585/0.005924, allocations: 152.4 kB / 276.8 MB, free: 13.87 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.989e-06/0.005934, allocations: 8.375 kB / 276.8 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.601e-05/0.00596, allocations: 12.38 kB / 276.8 MB, free: 13.85 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003107/0.006271, allocations: 248.8 kB / 277 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.759e-06/0.00628, allocations: 192 / 277 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.194e-05/0.006292, allocations: 8.375 kB / 277 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.745e-06/0.0063, allocations: 3.938 kB / 277 MB, free: 13.56 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.261e-05/0.006373, allocations: 47.91 kB / 277.1 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005098/0.006883, allocations: 0.6328 MB / 277.7 MB, free: 12.83 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002394/0.007122, allocations: 137.3 kB / 277.9 MB, free: 12.66 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.809e-05/0.0072, allocations: 63.12 kB / 277.9 MB, free: 12.58 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.721e-05/0.007217, allocations: 4 kB / 277.9 MB, free: 12.58 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.749e-05/0.007245, allocations: 41.39 kB / 278 MB, free: 12.53 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.202e-06/0.007246, allocations: 0 / 278 MB, free: 12.53 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002709/0.007517, allocations: 125.8 kB / 278.1 MB, free: 12.4 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.1e-05/0.007578, allocations: 118.8 kB / 278.2 MB, free: 12.26 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001/0.007678, allocations: 192.7 kB / 278.4 MB, free: 12.05 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.354e-05/0.007691, allocations: 25.7 kB / 278.4 MB, free: 12.02 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.554e-05/0.007757, allocations: 154.8 kB / 278.6 MB, free: 11.87 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.083e-05/0.007778, allocations: 27.78 kB / 278.6 MB, free: 11.84 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.235e-05/0.00782, allocations: 35.5 kB / 278.6 MB, free: 11.8 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.007951, allocations: 0.4922 MB / 279.1 MB, free: 11.29 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.666e-05/0.007978, allocations: 8 kB / 279.1 MB, free: 11.29 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.001e-05/0.008038, allocations: 85.42 kB / 279.2 MB, free: 11.17 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001102/0.008148, allocations: 101.4 kB / 279.3 MB, free: 11.04 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.00815, allocations: 4 kB / 279.3 MB, free: 11.03 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001359/0.008286, allocations: 109.4 kB / 279.4 MB, free: 10.92 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.0083, allocations: 7.125 kB / 279.4 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.008305, allocations: 4 kB / 279.4 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.178e-05/0.008317, allocations: 0 / 279.4 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.146e-05/0.008398, allocations: 31.98 kB / 279.5 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.008405, allocations: 3.938 kB / 279.5 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.015e-05/0.008455, allocations: 16.09 kB / 279.5 MB, free: 10.86 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.674e-06/0.008463, allocations: 8 kB / 279.5 MB, free: 10.85 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.368e-05/0.008536, allocations: 160.6 kB / 279.7 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000145/0.008681, allocations: 89.52 kB / 279.7 MB, free: 10.59 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.702e-05/0.008728, allocations: 17.02 kB / 279.8 MB, free: 10.57 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.008731, allocations: 0 / 279.8 MB, free: 10.57 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/0.008736, allocations: 7.984 kB / 279.8 MB, free: 10.57 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.00874, allocations: 0 / 279.8 MB, free: 10.57 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001863/0.008926, allocations: 140.5 kB / 279.9 MB, free: 10.39 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.008927, allocations: 0 / 279.9 MB, free: 10.39 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001768/0.009104, allocations: 47.91 kB / 279.9 MB, free: 10.35 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.215e-06/0.009106, allocations: 0 / 279.9 MB, free: 10.35 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.466e-05/0.009121, allocations: 0 / 279.9 MB, free: 10.35 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.009124, allocations: 4 kB / 280 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.009125, allocations: 0 / 280 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002854/0.00941, allocations: 422.6 kB / 280.4 MB, free: 9.906 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.581e-05/0.009426, allocations: 11.89 kB / 280.4 MB, free: 9.895 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.837e-05/0.009444, allocations: 7.984 kB / 280.4 MB, free: 9.887 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.906e-05/0.009543, allocations: 8 kB / 280.4 MB, free: 9.879 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.28e-05/0.009576, allocations: 7.938 kB / 280.4 MB, free: 9.871 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.225e-06/0.009584, allocations: 12.02 kB / 280.4 MB, free: 9.859 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.294e-05/0.009637, allocations: 142.3 kB / 280.6 MB, free: 9.723 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.009637, allocations: 0 / 280.6 MB, free: 9.723 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000284/0.009921, allocations: 23.94 kB / 280.6 MB, free: 9.699 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 0.0001563/0.01008, allocations: 99.25 kB / 280.7 MB, free: 9.594 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001292/0.01021, allocations: 63.53 kB / 280.7 MB, free: 9.527 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.01021, allocations: 3.938 kB / 280.7 MB, free: 9.523 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.817e-05/0.01024, allocations: 24.12 kB / 280.8 MB, free: 9.496 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004109/0.01065, allocations: 51.03 kB / 280.8 MB, free: 9.445 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000693/0.01134, allocations: 350.9 kB / 281.2 MB, free: 9.066 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.338e-05/0.01139, allocations: 71.33 kB / 281.2 MB, free: 8.977 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.961e-05/0.01142, allocations: 12.92 kB / 281.2 MB, free: 8.965 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.471e-05/0.01146, allocations: 16.5 kB / 281.3 MB, free: 8.945 MB / 266.7 MB Notification: Performance of SimCode: time 5.41e-07/0.01146, allocations: 0 / 281.3 MB, free: 8.945 MB / 266.7 MB Notification: Performance of Templates: time 0.003268/0.01473, allocations: 1.208 MB / 282.5 MB, free: 7.766 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.713976580882445]