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.001689/0.001689, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.001918/0.001918, allocations: 209.9 kB / 24.48 MB, free: 3.934 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.574/1.574, allocations: 230.5 MB / 258.1 MB, free: 7.77 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.001987/0.001987, allocations: 67.89 kB / 379 MB, free: 2.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2343/0.2363, allocations: 53.41 MB / 432.4 MB, free: 6.531 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003575/0.2399, allocations: 1.98 MB / 434.4 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001033/0.2409, allocations: 0.5298 MB / 434.9 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.931e-05/0.241, allocations: 7.938 kB / 434.9 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001054/0.2411, allocations: 15.8 kB / 434.9 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001381/0.2412, allocations: 35.72 kB / 434.9 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002583/0.2415, allocations: 59.86 kB / 435 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001846/0.2417, allocations: 123.5 kB / 435.1 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001535/0.2418, allocations: 49.22 kB / 435.2 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.234e-05/0.2419, allocations: 47.84 kB / 435.2 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00011/0.242, allocations: 51.7 kB / 435.3 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.697e-05/0.2421, allocations: 12 kB / 435.3 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.138e-05/0.2421, allocations: 8 kB / 435.3 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.402e-05/0.2421, allocations: 23.92 kB / 435.3 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.625e-05/0.2422, allocations: 51.72 kB / 435.4 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002101/0.2424, allocations: 130.4 kB / 435.5 MB, free: 3.41 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2424, allocations: 0 / 435.5 MB, free: 3.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.2424, allocations: 0 / 435.5 MB, free: 3.41 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.2424, allocations: 0 / 435.5 MB, free: 3.41 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.0006304/0.243, allocations: 368.6 kB / 435.8 MB, free: 3.023 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.2431, allocations: 11.98 kB / 435.9 MB, free: 3.012 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.172e-05/0.2431, allocations: 16.84 kB / 435.9 MB, free: 2.996 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002412/0.2433, allocations: 162.2 kB / 436 MB, free: 2.812 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.482e-05/0.2434, allocations: 8.375 kB / 436 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.092e-05/0.2434, allocations: 16.38 kB / 436.1 MB, free: 2.789 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005001/0.2439, allocations: 246 kB / 436.3 MB, free: 2.527 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.713e-05/0.2439, allocations: 4 kB / 436.3 MB, free: 2.523 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.568e-05/0.2439, allocations: 4 kB / 436.3 MB, free: 2.52 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.2439, allocations: 4 kB / 436.3 MB, free: 2.516 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002495/0.2442, allocations: 83.88 kB / 436.4 MB, free: 2.434 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006016/0.2448, allocations: 0.4886 MB / 436.9 MB, free: 1.898 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003406/0.2451, allocations: 139.9 kB / 437 MB, free: 1.734 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001588/0.2453, allocations: 70.64 kB / 437.1 MB, free: 1.656 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.164e-05/0.2453, allocations: 0 / 437.1 MB, free: 1.656 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.173e-05/0.2453, allocations: 42.55 kB / 437.1 MB, free: 1.605 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 9.82e-07/0.2453, allocations: 0 / 437.1 MB, free: 1.605 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005318/0.2459, allocations: 185.7 kB / 437.3 MB, free: 1.418 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.762e-05/0.246, allocations: 118.8 kB / 437.4 MB, free: 1.277 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001134/0.2461, allocations: 138.1 kB / 437.6 MB, free: 1.129 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.036e-05/0.2461, allocations: 29.7 kB / 437.6 MB, free: 1.094 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.7e-05/0.2462, allocations: 111.9 kB / 437.7 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.039e-05/0.2462, allocations: 27.83 kB / 437.7 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.119e-05/0.2463, allocations: 33.72 kB / 437.8 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.2464, allocations: 322.8 kB / 438.1 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001116/0.2465, allocations: 35.97 kB / 438.1 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000178/0.2467, allocations: 141.2 kB / 438.2 MB, free: 380 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003256/0.247, allocations: 185.5 kB / 438.4 MB, free: 144 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.247, allocations: 0 / 438.4 MB, free: 144 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004098/0.2474, allocations: 205.4 kB / 438.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.2475, allocations: 8 kB / 438.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.414e-05/0.2475, allocations: 7.984 kB / 438.6 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.2475, allocations: 4 kB / 438.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001459/0.2476, allocations: 43.92 kB / 438.7 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.626e-05/0.2476, allocations: 12.39 kB / 438.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001017/0.2477, allocations: 23.89 kB / 438.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.256e-05/0.2478, allocations: 8 kB / 438.7 MB, free: 15.83 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.0001091/0.2479, allocations: 129.7 kB / 438.9 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001545/0.248, allocations: 93.56 kB / 438.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.657e-05/0.2481, allocations: 12.72 kB / 439 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.2481, allocations: 4 kB / 439 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.2481, allocations: 0 / 439 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.2481, allocations: 4 kB / 439 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000218/0.2483, allocations: 133.2 kB / 439.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.2483, allocations: 4 kB / 439.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001734/0.2485, allocations: 39.91 kB / 439.1 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.885e-06/0.2485, allocations: 3.938 kB / 439.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.555e-05/0.2485, allocations: 8 kB / 439.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.2485, allocations: 0 / 439.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2485, allocations: 0 / 439.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005645/0.2491, allocations: 382.5 kB / 439.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.744e-05/0.2491, allocations: 23.88 kB / 439.5 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.403e-05/0.2491, allocations: 8 kB / 439.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000138/0.2493, allocations: 16.02 kB / 439.6 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.696e-05/0.2493, allocations: 7.938 kB / 439.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.017e-05/0.2493, allocations: 7.984 kB / 439.6 MB, free: 14.9 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.411e-05/0.2494, allocations: 99.27 kB / 439.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2494, allocations: 0 / 439.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003321/0.2497, allocations: 24 kB / 439.7 MB, free: 14.78 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.0001127/0.2498, allocations: 103.2 kB / 439.8 MB, free: 14.67 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003181/0.2502, allocations: 115.8 kB / 439.9 MB, free: 14.56 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2502, allocations: 0 / 439.9 MB, free: 14.56 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.593e-05/0.2502, allocations: 31.91 kB / 440 MB, free: 14.53 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004604/0.2507, allocations: 60.86 kB / 440 MB, free: 14.47 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007723/0.2515, allocations: 432 kB / 440.4 MB, free: 14.01 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001074/0.2516, allocations: 101.5 kB / 440.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.422e-05/0.2516, allocations: 15.44 kB / 440.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.2516, allocations: 0 / 440.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of Templates: time 0.003484/0.2551, allocations: 1.586 MB / 442.1 MB, free: 12.29 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.03745773807168]