Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00189/0.00189, allocations: 99.66 kB / 21.18 MB, free: 0.5273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002365/0.002365, allocations: 214.1 kB / 24.48 MB, free: 3.844 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.47/1.47, allocations: 230.6 MB / 258.2 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001606/0.001606, allocations: 51.92 kB / 379 MB, free: 2.504 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2437/0.2453, allocations: 53.36 MB / 432.3 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003949/0.2493, allocations: 1.973 MB / 434.3 MB, free: 4.762 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001198/0.2505, allocations: 0.5064 MB / 434.8 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001537/0.2506, allocations: 7.938 kB / 434.8 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001346/0.2507, allocations: 15.8 kB / 434.8 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001114/0.2509, allocations: 35.72 kB / 434.9 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003404/0.2512, allocations: 55.88 kB / 434.9 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002234/0.2514, allocations: 119.6 kB / 435 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001859/0.2516, allocations: 40.56 kB / 435.1 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001214/0.2517, allocations: 47.86 kB / 435.1 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001014/0.2518, allocations: 51.69 kB / 435.2 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.831e-05/0.2519, allocations: 12 kB / 435.2 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.439e-05/0.2519, allocations: 8 kB / 435.2 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.612e-05/0.2519, allocations: 23.92 kB / 435.2 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.995e-05/0.252, allocations: 47.73 kB / 435.3 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002645/0.2523, allocations: 131.1 kB / 435.4 MB, free: 3.664 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.2523, allocations: 4 kB / 435.4 MB, free: 3.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2523, allocations: 0 / 435.4 MB, free: 3.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.674e-06/0.2523, allocations: 0 / 435.4 MB, free: 3.66 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.0006678/0.2529, allocations: 353.8 kB / 435.7 MB, free: 3.285 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.253, allocations: 8.031 kB / 435.7 MB, free: 3.277 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.598e-05/0.253, allocations: 16.84 kB / 435.8 MB, free: 3.262 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000307/0.2534, allocations: 146.3 kB / 435.9 MB, free: 3.094 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.309e-05/0.2534, allocations: 12.38 kB / 435.9 MB, free: 3.082 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.176e-05/0.2534, allocations: 20.33 kB / 435.9 MB, free: 3.062 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005411/0.254, allocations: 242.9 kB / 436.2 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.78e-05/0.254, allocations: 0 / 436.2 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.794e-05/0.254, allocations: 4 kB / 436.2 MB, free: 2.801 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.254, allocations: 4 kB / 436.2 MB, free: 2.797 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002632/0.2543, allocations: 83.88 kB / 436.3 MB, free: 2.715 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006672/0.2549, allocations: 0.5042 MB / 436.8 MB, free: 2.164 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000297/0.2552, allocations: 135.9 kB / 436.9 MB, free: 2.004 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001653/0.2554, allocations: 70.62 kB / 437 MB, free: 1.926 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.691e-05/0.2554, allocations: 0 / 437 MB, free: 1.926 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.108e-05/0.2555, allocations: 38.5 kB / 437 MB, free: 1.879 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.272e-06/0.2555, allocations: 4 kB / 437 MB, free: 1.875 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005462/0.256, allocations: 173.6 kB / 437.2 MB, free: 1.699 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.777e-05/0.2561, allocations: 118.8 kB / 437.3 MB, free: 1.559 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001193/0.2562, allocations: 128.4 kB / 437.4 MB, free: 1.422 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.376e-05/0.2562, allocations: 29.7 kB / 437.4 MB, free: 1.387 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.888e-05/0.2563, allocations: 115.8 kB / 437.6 MB, free: 1.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.176e-05/0.2563, allocations: 27.78 kB / 437.6 MB, free: 1.242 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.417e-05/0.2564, allocations: 29.84 kB / 437.6 MB, free: 1.207 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.2566, allocations: 330.8 kB / 437.9 MB, free: 0.875 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001273/0.2567, allocations: 39.91 kB / 438 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001889/0.2569, allocations: 135.5 kB / 438.1 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003433/0.2572, allocations: 180.6 kB / 438.3 MB, free: 448 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.2572, allocations: 0 / 438.3 MB, free: 448 kB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000393/0.2576, allocations: 185.3 kB / 438.5 MB, free: 256 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.2576, allocations: 8 kB / 438.5 MB, free: 248 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.2576, allocations: 4 kB / 438.5 MB, free: 244 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/0.2577, allocations: 4.438 kB / 438.5 MB, free: 240 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001969/0.2579, allocations: 51.84 kB / 438.5 MB, free: 188 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.149e-05/0.2579, allocations: 8 kB / 438.5 MB, free: 180 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001157/0.258, allocations: 23.88 kB / 438.6 MB, free: 156 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.674e-05/0.258, allocations: 8 kB / 438.6 MB, free: 148 kB / 334.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.0001308/0.2581, allocations: 125.8 kB / 438.7 MB, free: 12 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000189/0.2583, allocations: 85.89 kB / 438.8 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.756e-05/0.2584, allocations: 20.7 kB / 438.8 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.789e-06/0.2584, allocations: 7.938 kB / 438.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.2584, allocations: 0 / 438.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.2584, allocations: 4 kB / 438.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002753/0.2587, allocations: 137.2 kB / 438.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.2587, allocations: 0 / 438.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000183/0.2589, allocations: 31.98 kB / 439 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.63e-06/0.2589, allocations: 3.984 kB / 439 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.69e-05/0.2589, allocations: 7.938 kB / 439 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.2589, allocations: 0 / 439 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.668e-06/0.2589, allocations: 3.938 kB / 439 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006193/0.2595, allocations: 371.6 kB / 439.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.874e-05/0.2595, allocations: 15.88 kB / 439.4 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.183e-05/0.2596, allocations: 4 kB / 439.4 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001402/0.2597, allocations: 15.98 kB / 439.4 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.057e-05/0.2598, allocations: 11.92 kB / 439.4 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.034e-05/0.2598, allocations: 7.938 kB / 439.4 MB, free: 15.24 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.375e-05/0.2598, allocations: 102.5 kB / 439.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2598, allocations: 0 / 439.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003359/0.2602, allocations: 24 kB / 439.5 MB, free: 15.12 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.0001282/0.2603, allocations: 99.31 kB / 439.6 MB, free: 15.01 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000348/0.2607, allocations: 115.7 kB / 439.7 MB, free: 14.9 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.2607, allocations: 7.938 kB / 439.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001004/0.2608, allocations: 24.86 kB / 439.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005265/0.2613, allocations: 55.98 kB / 439.8 MB, free: 14.81 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008274/0.2621, allocations: 424.1 kB / 440.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001077/0.2622, allocations: 101.5 kB / 440.3 MB, free: 14.24 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.641e-05/0.2623, allocations: 19.81 kB / 440.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2623, allocations: 0 / 440.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of Templates: time 0.004071/0.2663, allocations: 1.546 MB / 441.9 MB, free: 12.69 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.060818621888757]