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.001792/0.001792, allocations: 109.1 kB / 21.18 MB, free: 0.7656 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.002284/0.002284, allocations: 213.1 kB / 24.5 MB, free: 4.148 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.531/1.531, allocations: 230.5 MB / 258.1 MB, free: 7.988 MB / 206.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.002279/0.002279, allocations: 67.88 kB / 379 MB, free: 2.523 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3297/0.332, allocations: 53.41 MB / 432.4 MB, free: 6.777 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003678/0.3357, allocations: 2.051 MB / 434.5 MB, free: 4.723 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001151/0.3368, allocations: 0.557 MB / 435 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001229/0.337, allocations: 4 kB / 435 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001229/0.3371, allocations: 23.8 kB / 435.1 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001585/0.3372, allocations: 31.72 kB / 435.1 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002881/0.3375, allocations: 63.86 kB / 435.1 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000188/0.3377, allocations: 119.6 kB / 435.3 MB, free: 3.922 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001595/0.3379, allocations: 45.58 kB / 435.3 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.781e-05/0.338, allocations: 59.7 kB / 435.4 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.681e-05/0.3381, allocations: 47.78 kB / 435.4 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.726e-05/0.3381, allocations: 12 kB / 435.4 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.602e-05/0.3381, allocations: 12 kB / 435.4 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.539e-05/0.3382, allocations: 31.84 kB / 435.5 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.01e-05/0.3382, allocations: 67.66 kB / 435.5 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000217/0.3385, allocations: 124.7 kB / 435.7 MB, free: 3.527 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3385, allocations: 0 / 435.7 MB, free: 3.527 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3385, allocations: 0 / 435.7 MB, free: 3.527 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.001e-05/0.3385, allocations: 0 / 435.7 MB, free: 3.527 MB / 334.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.0006345/0.3391, allocations: 361.8 kB / 436 MB, free: 3.145 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.3391, allocations: 8.031 kB / 436 MB, free: 3.137 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.436e-05/0.3392, allocations: 16.84 kB / 436 MB, free: 3.121 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002355/0.3394, allocations: 162.2 kB / 436.2 MB, free: 2.938 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.596e-05/0.3394, allocations: 12.38 kB / 436.2 MB, free: 2.926 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.856e-05/0.3395, allocations: 12.38 kB / 436.2 MB, free: 2.914 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005267/0.34, allocations: 250.5 kB / 436.5 MB, free: 2.648 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/0.34, allocations: 3.984 kB / 436.5 MB, free: 2.645 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.912e-05/0.34, allocations: 4 kB / 436.5 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.555e-06/0.3401, allocations: 4 kB / 436.5 MB, free: 2.637 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002561/0.3403, allocations: 86.69 kB / 436.6 MB, free: 2.555 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006939/0.341, allocations: 0.531 MB / 437.1 MB, free: 1.965 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003823/0.3414, allocations: 143.8 kB / 437.2 MB, free: 1.797 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001646/0.3415, allocations: 78.56 kB / 437.3 MB, free: 1.711 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.668e-05/0.3416, allocations: 0 / 437.3 MB, free: 1.711 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.581e-05/0.3416, allocations: 34.56 kB / 437.3 MB, free: 1.668 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.022e-06/0.3416, allocations: 0 / 437.3 MB, free: 1.668 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005524/0.3422, allocations: 185.4 kB / 437.5 MB, free: 1.48 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001153/0.3423, allocations: 114.8 kB / 437.6 MB, free: 1.344 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000147/0.3424, allocations: 126.1 kB / 437.8 MB, free: 1.207 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.459e-05/0.3424, allocations: 25.7 kB / 437.8 MB, free: 1.176 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.3425, allocations: 120 kB / 437.9 MB, free: 1.055 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.638e-05/0.3426, allocations: 31.91 kB / 437.9 MB, free: 1.023 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.129e-05/0.3426, allocations: 37.7 kB / 438 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.3428, allocations: 326.8 kB / 438.3 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001242/0.3429, allocations: 39.91 kB / 438.3 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002137/0.3431, allocations: 141.3 kB / 438.5 MB, free: 440 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003247/0.3435, allocations: 185.5 kB / 438.6 MB, free: 204 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.3435, allocations: 0 / 438.6 MB, free: 204 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003838/0.3439, allocations: 197.2 kB / 438.8 MB, free: 0 / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.706e-05/0.3439, allocations: 8.047 kB / 438.8 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.3439, allocations: 4 kB / 438.8 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.948e-05/0.3439, allocations: 4.234 kB / 438.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001652/0.3441, allocations: 52.33 kB / 438.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/0.3441, allocations: 8 kB / 438.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001171/0.3442, allocations: 19.88 kB / 438.9 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.764e-05/0.3442, allocations: 12 kB / 438.9 MB, free: 15.89 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.0001188/0.3443, allocations: 133.7 kB / 439.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001628/0.3445, allocations: 93.94 kB / 439.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.71e-05/0.3446, allocations: 16.8 kB / 439.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.3446, allocations: 7.938 kB / 439.2 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.3446, allocations: 0 / 439.2 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.3446, allocations: 4 kB / 439.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002919/0.3449, allocations: 180.6 kB / 439.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3449, allocations: 0 / 439.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001895/0.3451, allocations: 39.92 kB / 439.4 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.019e-06/0.3451, allocations: 3.984 kB / 439.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.656e-05/0.3451, allocations: 8 kB / 439.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.3451, allocations: 0 / 439.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3451, allocations: 0 / 439.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005545/0.3457, allocations: 381.9 kB / 439.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.718e-05/0.3457, allocations: 19.86 kB / 439.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.41e-05/0.3457, allocations: 11.94 kB / 439.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001386/0.3459, allocations: 4 kB / 439.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.007e-05/0.3459, allocations: 4.047 kB / 439.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.008e-05/0.3459, allocations: 12 kB / 439.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.814e-05/0.346, allocations: 98.92 kB / 439.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.346, allocations: 0 / 439.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003253/0.3463, allocations: 24 kB / 440 MB, free: 14.8 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.0001103/0.3464, allocations: 103.2 kB / 440.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003431/0.3467, allocations: 120 kB / 440.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3468, allocations: 3.938 kB / 440.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.905e-05/0.3469, allocations: 27.92 kB / 440.2 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005112/0.3474, allocations: 62.61 kB / 440.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008366/0.3482, allocations: 428.7 kB / 440.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003726/0.3486, allocations: 0.7123 MB / 441.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.105e-05/0.3486, allocations: 19.44 kB / 441.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3486, allocations: 4 kB / 441.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of Templates: time 0.004002/0.3526, allocations: 1.537 MB / 443 MB, free: 11.73 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 -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: 7.531797989970073]