Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.00176/0.00176, allocations: 107.6 kB / 21.19 MB, free: 0.6484 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.002066/0.002066, allocations: 214.1 kB / 24.48 MB, free: 3.961 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.789 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.ClockedWithDiscreteController,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.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_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001537/0.001537, allocations: 43.94 kB / 378.9 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2721/0.2736, allocations: 53.38 MB / 432.3 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003542/0.2772, allocations: 1.977 MB / 434.3 MB, free: 4.723 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00105/0.2782, allocations: 0.5375 MB / 434.8 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001057/0.2783, allocations: 4 kB / 434.8 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001177/0.2784, allocations: 19.8 kB / 434.9 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001482/0.2786, allocations: 31.72 kB / 434.9 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002358/0.2788, allocations: 55.88 kB / 434.9 MB, free: 4.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001777/0.279, allocations: 119.5 kB / 435.1 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001439/0.2791, allocations: 53.2 kB / 435.1 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.192e-05/0.2792, allocations: 51.8 kB / 435.2 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.935e-05/0.2793, allocations: 55.7 kB / 435.2 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.582e-05/0.2794, allocations: 12 kB / 435.2 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.148e-05/0.2794, allocations: 12 kB / 435.2 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.151e-05/0.2794, allocations: 27.91 kB / 435.3 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.083e-05/0.2795, allocations: 51.73 kB / 435.3 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001991/0.2797, allocations: 122.5 kB / 435.4 MB, free: 3.574 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.2797, allocations: 4 kB / 435.4 MB, free: 3.57 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.2797, allocations: 0 / 435.4 MB, free: 3.57 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.2797, allocations: 0 / 435.4 MB, free: 3.57 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.000597/0.2803, allocations: 357.8 kB / 435.8 MB, free: 3.191 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.2803, allocations: 12.03 kB / 435.8 MB, free: 3.18 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.589e-05/0.2804, allocations: 16.84 kB / 435.8 MB, free: 3.164 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002618/0.2806, allocations: 162.2 kB / 436 MB, free: 2.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.645e-05/0.2806, allocations: 8.375 kB / 436 MB, free: 2.973 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.406e-05/0.2807, allocations: 12.38 kB / 436 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005064/0.2812, allocations: 246.8 kB / 436.2 MB, free: 2.695 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.2812, allocations: 7.938 kB / 436.2 MB, free: 2.688 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.457e-05/0.2812, allocations: 4 kB / 436.2 MB, free: 2.684 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.2812, allocations: 4 kB / 436.3 MB, free: 2.68 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002612/0.2815, allocations: 91.86 kB / 436.3 MB, free: 2.59 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005855/0.2821, allocations: 484.4 kB / 436.8 MB, free: 2.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000357/0.2824, allocations: 143.8 kB / 437 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001547/0.2826, allocations: 74.64 kB / 437 MB, free: 1.82 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.929e-05/0.2826, allocations: 4 kB / 437 MB, free: 1.816 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.077e-05/0.2826, allocations: 42.48 kB / 437.1 MB, free: 1.766 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.192e-06/0.2826, allocations: 0 / 437.1 MB, free: 1.766 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005058/0.2831, allocations: 185.7 kB / 437.3 MB, free: 1.578 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.96e-05/0.2832, allocations: 114.8 kB / 437.4 MB, free: 1.441 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001121/0.2833, allocations: 136.4 kB / 437.5 MB, free: 1.297 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.181e-05/0.2834, allocations: 33.83 kB / 437.5 MB, free: 1.258 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.629e-05/0.2834, allocations: 111.9 kB / 437.6 MB, free: 1.145 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.588e-05/0.2835, allocations: 23.84 kB / 437.7 MB, free: 1.121 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.398e-05/0.2835, allocations: 33.72 kB / 437.7 MB, free: 1.082 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.2837, allocations: 322.8 kB / 438 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.2838, allocations: 35.97 kB / 438 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001795/0.284, allocations: 139.5 kB / 438.2 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003118/0.2843, allocations: 185.5 kB / 438.4 MB, free: 316 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.2843, allocations: 4 kB / 438.4 MB, free: 312 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003747/0.2846, allocations: 201.4 kB / 438.6 MB, free: 104 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.2847, allocations: 8 kB / 438.6 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.2847, allocations: 7.938 kB / 438.6 MB, free: 88 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.2847, allocations: 4 kB / 438.6 MB, free: 84 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001629/0.2848, allocations: 43.98 kB / 438.6 MB, free: 40 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.344e-05/0.2849, allocations: 11.92 kB / 438.6 MB, free: 28 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.974e-05/0.285, allocations: 19.89 kB / 438.7 MB, free: 8 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.286e-05/0.285, allocations: 8 kB / 438.7 MB, free: 0 / 334.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.0001217/0.2851, allocations: 133.9 kB / 438.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001592/0.2853, allocations: 97.5 kB / 438.9 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.549e-05/0.2853, allocations: 16.72 kB / 438.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.2853, allocations: 0 / 438.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.2853, allocations: 7.938 kB / 438.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.2853, allocations: 0 / 438.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002188/0.2856, allocations: 133.2 kB / 439 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.2856, allocations: 3.984 kB / 439.1 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000169/0.2857, allocations: 31.98 kB / 439.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.609e-06/0.2857, allocations: 3.938 kB / 439.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.459e-05/0.2857, allocations: 12 kB / 439.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.2857, allocations: 0 / 439.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.2857, allocations: 0 / 439.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005416/0.2863, allocations: 383.5 kB / 439.5 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.08e-05/0.2863, allocations: 19.78 kB / 439.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.091e-05/0.2863, allocations: 0 / 439.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001342/0.2865, allocations: 12.08 kB / 439.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.052e-05/0.2865, allocations: 11.92 kB / 439.5 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.678e-06/0.2865, allocations: 8.062 kB / 439.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.707e-05/0.2866, allocations: 102.5 kB / 439.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2866, allocations: 0 / 439.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000316/0.2869, allocations: 24 kB / 439.6 MB, free: 14.95 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.000109/0.287, allocations: 107.2 kB / 439.8 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000318/0.2873, allocations: 120.5 kB / 439.9 MB, free: 14.72 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2873, allocations: 0 / 439.9 MB, free: 14.72 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.304e-05/0.2874, allocations: 23.98 kB / 439.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004683/0.2879, allocations: 55.92 kB / 439.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007361/0.2886, allocations: 432.5 kB / 440.4 MB, free: 14.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001008/0.2887, allocations: 105.5 kB / 440.5 MB, free: 14.06 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.22e-05/0.2888, allocations: 15.44 kB / 440.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2888, allocations: 0 / 440.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of Templates: time 0.0033/0.2921, allocations: 1.593 MB / 442.1 MB, free: 12.46 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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: 6.989092611009255]