Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.00158/0.00158, allocations: 103.6 kB / 21.19 MB, free: 0.5234 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.001812/0.001812, allocations: 213.9 kB / 24.48 MB, free: 3.836 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.53/1.53, allocations: 230.5 MB / 258.1 MB, free: 7.82 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.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001948/0.001948, allocations: 67.88 kB / 379 MB, free: 2.344 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2394/0.2413, allocations: 53.4 MB / 432.4 MB, free: 6.555 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.0035/0.2448, allocations: 1.977 MB / 434.3 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009901/0.2458, allocations: 0.5142 MB / 434.9 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.846e-05/0.2459, allocations: 0 / 434.9 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001121/0.246, allocations: 23.73 kB / 434.9 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.333e-05/0.2461, allocations: 23.72 kB / 434.9 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000312/0.2464, allocations: 59.83 kB / 435 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001728/0.2466, allocations: 119.6 kB / 435.1 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001423/0.2467, allocations: 44.55 kB / 435.1 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.901e-05/0.2468, allocations: 43.86 kB / 435.2 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.352e-05/0.2469, allocations: 51.7 kB / 435.2 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.332e-05/0.2469, allocations: 8 kB / 435.2 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.242e-05/0.2469, allocations: 16 kB / 435.2 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.584e-05/0.247, allocations: 27.91 kB / 435.3 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.006e-05/0.247, allocations: 43.8 kB / 435.3 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001923/0.2472, allocations: 127.1 kB / 435.4 MB, free: 3.477 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.2472, allocations: 3.938 kB / 435.4 MB, free: 3.473 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2472, allocations: 0 / 435.4 MB, free: 3.473 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.648e-06/0.2472, allocations: 0 / 435.4 MB, free: 3.473 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0005737/0.2478, allocations: 345.8 kB / 435.8 MB, free: 3.105 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.2478, allocations: 11.98 kB / 435.8 MB, free: 3.094 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.237e-05/0.2479, allocations: 20.84 kB / 435.8 MB, free: 3.074 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002169/0.2481, allocations: 158.2 kB / 436 MB, free: 2.895 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.472e-05/0.2481, allocations: 8.375 kB / 436 MB, free: 2.887 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.385e-05/0.2482, allocations: 16.36 kB / 436 MB, free: 2.871 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004729/0.2486, allocations: 242.8 kB / 436.2 MB, free: 2.613 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.2486, allocations: 4 kB / 436.2 MB, free: 2.609 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.626e-05/0.2487, allocations: 8 kB / 436.2 MB, free: 2.602 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.276e-06/0.2487, allocations: 4 kB / 436.2 MB, free: 2.598 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002362/0.2489, allocations: 79.88 kB / 436.3 MB, free: 2.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005769/0.2495, allocations: 0.4886 MB / 436.8 MB, free: 1.984 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002767/0.2498, allocations: 143.9 kB / 436.9 MB, free: 1.816 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001576/0.2499, allocations: 70.64 kB / 437 MB, free: 1.738 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.686e-05/0.2499, allocations: 7.984 kB / 437 MB, free: 1.73 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.388e-05/0.25, allocations: 38.5 kB / 437.1 MB, free: 1.684 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.353e-06/0.25, allocations: 0 / 437.1 MB, free: 1.684 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004912/0.2505, allocations: 177.4 kB / 437.2 MB, free: 1.504 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.638e-05/0.2506, allocations: 114.8 kB / 437.3 MB, free: 1.367 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001115/0.2507, allocations: 129 kB / 437.5 MB, free: 1.23 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.067e-05/0.2507, allocations: 33.7 kB / 437.5 MB, free: 1.191 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.455e-05/0.2508, allocations: 119.8 kB / 437.6 MB, free: 1.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.025e-05/0.2508, allocations: 27.78 kB / 437.7 MB, free: 1.043 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.04e-05/0.2508, allocations: 29.72 kB / 437.7 MB, free: 1.008 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.251, allocations: 322.8 kB / 438 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/0.2511, allocations: 35.97 kB / 438 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001871/0.2513, allocations: 139.5 kB / 438.2 MB, free: 480 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002954/0.2516, allocations: 180.7 kB / 438.3 MB, free: 252 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.2516, allocations: 3.938 kB / 438.3 MB, free: 248 kB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003669/0.2519, allocations: 185.6 kB / 438.5 MB, free: 56 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.252, allocations: 8 kB / 438.5 MB, free: 48 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.252, allocations: 0 / 438.5 MB, free: 48 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.252, allocations: 8 kB / 438.5 MB, free: 40 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001852/0.2522, allocations: 44.11 kB / 438.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.211e-05/0.2522, allocations: 11.94 kB / 438.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001039/0.2523, allocations: 23.88 kB / 438.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.404e-05/0.2523, allocations: 8 kB / 438.6 MB, free: 15.95 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.0001069/0.2524, allocations: 129.8 kB / 438.8 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001408/0.2525, allocations: 85.58 kB / 438.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.171e-05/0.2526, allocations: 16.72 kB / 438.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.2526, allocations: 0 / 438.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.2526, allocations: 3.938 kB / 438.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.2526, allocations: 7.984 kB / 438.9 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002171/0.2528, allocations: 137.2 kB / 439 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.2528, allocations: 0 / 439 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001634/0.253, allocations: 27.98 kB / 439 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.253, allocations: 4 kB / 439 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/0.253, allocations: 4.469 kB / 439 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.253, allocations: 11.94 kB / 439 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.253, allocations: 3.984 kB / 439.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005234/0.2535, allocations: 371.4 kB / 439.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.114e-05/0.2536, allocations: 15.88 kB / 439.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.998e-05/0.2536, allocations: 0 / 439.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001329/0.2537, allocations: 15.98 kB / 439.4 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.425e-05/0.2538, allocations: 4.172 kB / 439.5 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.889e-06/0.2538, allocations: 8.047 kB / 439.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.354e-05/0.2538, allocations: 107.2 kB / 439.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2538, allocations: 0 / 439.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003113/0.2541, allocations: 24 kB / 439.6 MB, free: 14.92 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 (14): * Single equations (assignments): 14 * 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.0001063/0.2542, allocations: 107.2 kB / 439.7 MB, free: 14.81 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003025/0.2545, allocations: 112.6 kB / 439.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.2545, allocations: 0 / 439.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.95e-05/0.2546, allocations: 27.97 kB / 439.8 MB, free: 14.67 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004571/0.2551, allocations: 57.62 kB / 439.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007043/0.2558, allocations: 424.1 kB / 440.3 MB, free: 14.17 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.829e-05/0.2559, allocations: 101.5 kB / 440.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.163e-05/0.2559, allocations: 15.44 kB / 440.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2559, allocations: 0 / 440.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of Templates: time 0.003369/0.2593, allocations: 1.56 MB / 442 MB, free: 12.49 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.026865661144257]