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.0009343/0.0009343, allocations: 83.58 kB / 21.19 MB, free: 3.383 MB / 18.57 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.0009499/0.0009499, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 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 0.9779/0.9779, allocations: 177.1 MB / 205 MB, free: 5.648 MB / 186.7 MB " [Timeout remaining time 179] 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 2.474e-06/2.474e-06, allocations: 0 / 272.9 MB, free: 1.59 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.737e-05/3.984e-05, allocations: 2.312 kB / 273 MB, free: 1.586 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003072/0.003112, allocations: 2.066 MB / 275 MB, free: 15.51 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008333/0.003945, allocations: 0.5452 MB / 275.6 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001044/0.004049, allocations: 0 / 275.6 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001142/0.004164, allocations: 19.8 kB / 275.6 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001468/0.00431, allocations: 35.72 kB / 275.6 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002066/0.004517, allocations: 55.8 kB / 275.7 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001619/0.004679, allocations: 123.5 kB / 275.8 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000128/0.004807, allocations: 41.59 kB / 275.8 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.62e-05/0.004903, allocations: 75.8 kB / 275.9 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.274e-05/0.004976, allocations: 35.89 kB / 275.9 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.612e-05/0.005002, allocations: 15.94 kB / 276 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.428e-05/0.005016, allocations: 12 kB / 276 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.012e-05/0.005046, allocations: 31.89 kB / 276 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.06e-05/0.005097, allocations: 39.86 kB / 276 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001761/0.005273, allocations: 95.58 kB / 276.1 MB, free: 14.38 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.824e-06/0.005275, allocations: 0 / 276.1 MB, free: 14.38 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.005276, allocations: 0 / 276.1 MB, free: 14.38 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.005281, allocations: 0 / 276.1 MB, free: 14.38 MB / 266.7 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.0004949/0.005776, allocations: 452.1 kB / 276.6 MB, free: 13.91 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.005814, allocations: 8.031 kB / 276.6 MB, free: 13.9 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.568e-05/0.00587, allocations: 32.78 kB / 276.6 MB, free: 13.87 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001921/0.006062, allocations: 152.4 kB / 276.8 MB, free: 13.69 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.272e-05/0.006075, allocations: 12.38 kB / 276.8 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.642e-05/0.006111, allocations: 16.31 kB / 276.8 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003605/0.006471, allocations: 236.8 kB / 277 MB, free: 13.4 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.006482, allocations: 192 / 277 MB, free: 13.4 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.265e-05/0.006495, allocations: 4.375 kB / 277 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.006505, allocations: 7.938 kB / 277 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.62e-05/0.006591, allocations: 50.66 kB / 277.1 MB, free: 13.34 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000465/0.007056, allocations: 0.6329 MB / 277.7 MB, free: 12.65 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002157/0.007272, allocations: 141.1 kB / 277.9 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.271e-05/0.007335, allocations: 59.12 kB / 277.9 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.461e-05/0.007359, allocations: 8.125 kB / 277.9 MB, free: 12.4 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.23e-05/0.007382, allocations: 37.39 kB / 278 MB, free: 12.35 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.082e-06/0.007383, allocations: 0 / 278 MB, free: 12.35 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002444/0.007627, allocations: 125.5 kB / 278.1 MB, free: 12.22 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.747e-05/0.007684, allocations: 114.9 kB / 278.2 MB, free: 12.09 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.746e-05/0.007772, allocations: 185.9 kB / 278.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.223e-05/0.007784, allocations: 33.7 kB / 278.4 MB, free: 11.85 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.908e-05/0.007843, allocations: 154.8 kB / 278.6 MB, free: 11.69 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.109e-05/0.007864, allocations: 31.77 kB / 278.6 MB, free: 11.66 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.748e-05/0.007902, allocations: 27.38 kB / 278.6 MB, free: 11.62 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.008022, allocations: 0.4922 MB / 279.1 MB, free: 11.12 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.322e-05/0.008046, allocations: 15.98 kB / 279.1 MB, free: 11.11 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.989e-05/0.008095, allocations: 85.38 kB / 279.2 MB, free: 10.99 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.452e-05/0.00818, allocations: 101.5 kB / 279.3 MB, free: 10.86 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.008182, allocations: 0 / 279.3 MB, free: 10.86 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001116/0.008294, allocations: 109.4 kB / 279.4 MB, free: 10.74 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.008309, allocations: 6.875 kB / 279.4 MB, free: 10.74 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.008315, allocations: 8 kB / 279.4 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.717e-05/0.008332, allocations: 4 kB / 279.4 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.246e-05/0.008404, allocations: 27.92 kB / 279.5 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.008412, allocations: 4 kB / 279.5 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.336e-05/0.008445, allocations: 11.88 kB / 279.5 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.516e-06/0.008454, allocations: 8 kB / 279.5 MB, free: 10.68 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (12): * Single equations (assignments): 12 * 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 7.748e-05/0.008531, allocations: 168.5 kB / 279.6 MB, free: 10.5 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.978e-05/0.008621, allocations: 85.53 kB / 279.7 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.448e-05/0.008666, allocations: 16.78 kB / 279.7 MB, free: 10.39 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.008668, allocations: 4 kB / 279.7 MB, free: 10.39 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.008672, allocations: 0 / 279.7 MB, free: 10.39 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.266e-05/0.008685, allocations: 7.984 kB / 279.8 MB, free: 10.38 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001423/0.008827, allocations: 144.5 kB / 279.9 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.008828, allocations: 0 / 279.9 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.504e-05/0.008923, allocations: 27.98 kB / 279.9 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.008927, allocations: 4 kB / 279.9 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.729e-05/0.008944, allocations: 4 kB / 279.9 MB, free: 10.17 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.008946, allocations: 4 kB / 279.9 MB, free: 10.17 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.008947, allocations: 0 / 279.9 MB, free: 10.17 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002662/0.009213, allocations: 427 kB / 280.4 MB, free: 9.727 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.551e-05/0.009228, allocations: 16.11 kB / 280.4 MB, free: 9.711 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.502e-05/0.009243, allocations: 4 kB / 280.4 MB, free: 9.707 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.893e-05/0.009302, allocations: 4 kB / 280.4 MB, free: 9.703 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.627e-05/0.009339, allocations: 15.97 kB / 280.4 MB, free: 9.688 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.598e-06/0.009343, allocations: 4 kB / 280.4 MB, free: 9.684 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.401e-05/0.009387, allocations: 138 kB / 280.5 MB, free: 9.551 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009387, allocations: 4 kB / 280.5 MB, free: 9.547 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001961/0.009583, allocations: 27.88 kB / 280.6 MB, free: 9.52 MB / 266.7 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 7.3e-05/0.009656, allocations: 107.2 kB / 280.7 MB, free: 9.406 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001215/0.009778, allocations: 63.53 kB / 280.7 MB, free: 9.34 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.332e-06/0.009779, allocations: 0 / 280.7 MB, free: 9.34 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.467e-05/0.009804, allocations: 19.67 kB / 280.7 MB, free: 9.316 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003395/0.01014, allocations: 53.52 kB / 280.8 MB, free: 9.266 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007388/0.01088, allocations: 363.2 kB / 281.2 MB, free: 8.875 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.105e-05/0.01093, allocations: 71.33 kB / 281.2 MB, free: 8.785 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.594e-05/0.01096, allocations: 4.984 kB / 281.2 MB, free: 8.781 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.45e-05/0.011, allocations: 16.5 kB / 281.2 MB, free: 8.762 MB / 266.7 MB Notification: Performance of SimCode: time 8.62e-07/0.011, allocations: 0 / 281.2 MB, free: 8.762 MB / 266.7 MB Notification: Performance of Templates: time 0.002967/0.01397, allocations: 1.21 MB / 282.5 MB, free: 7.582 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.940399857237935]