Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 78.97 kB / 21.42 MB, free: 3.078 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0015/0.0015, allocations: 153.5 kB / 24.81 MB, free: 8.934 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9179/0.9179, allocations: 173.4 MB / 201.5 MB, free: 8.285 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.843e-06/1.843e-06, allocations: 0 / 268.4 MB, free: 9.789 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.359e-05/1.543e-05, allocations: 2.312 kB / 268.4 MB, free: 9.785 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.002546/0.002562, allocations: 2.086 MB / 270.5 MB, free: 7.703 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007315/0.003293, allocations: 0.4968 MB / 271 MB, free: 7.203 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001044/0.003398, allocations: 4 kB / 271 MB, free: 7.199 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001047/0.003502, allocations: 16.77 kB / 271 MB, free: 7.184 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.859e-05/0.003571, allocations: 27.72 kB / 271 MB, free: 7.156 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002358/0.003807, allocations: 62.27 kB / 271.1 MB, free: 7.098 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001508/0.003958, allocations: 131.5 kB / 271.2 MB, free: 6.969 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001211/0.004079, allocations: 41.97 kB / 271.3 MB, free: 6.918 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001188/0.004198, allocations: 75.86 kB / 271.3 MB, free: 6.844 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.564e-05/0.004273, allocations: 43.81 kB / 271.4 MB, free: 6.801 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.193e-05/0.004295, allocations: 8 kB / 271.4 MB, free: 6.793 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.641e-05/0.004312, allocations: 16.84 kB / 271.4 MB, free: 6.777 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.817e-05/0.00434, allocations: 27.91 kB / 271.4 MB, free: 6.75 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.417e-05/0.004374, allocations: 36.45 kB / 271.5 MB, free: 6.715 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001469/0.004521, allocations: 96.11 kB / 271.5 MB, free: 6.621 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.304e-06/0.004523, allocations: 0 / 271.5 MB, free: 6.621 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.41e-07/0.004524, allocations: 1.969 kB / 271.6 MB, free: 6.621 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.148e-06/0.004528, allocations: 0 / 271.6 MB, free: 6.621 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0004183/0.004947, allocations: 460 kB / 272 MB, free: 6.137 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.004983, allocations: 8.031 kB / 272 MB, free: 6.129 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.987e-05/0.005023, allocations: 22.19 kB / 272 MB, free: 6.109 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001528/0.005176, allocations: 156.4 kB / 272.2 MB, free: 5.93 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.149e-05/0.005188, allocations: 16.91 kB / 272.2 MB, free: 5.914 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.457e-05/0.005212, allocations: 20.3 kB / 272.2 MB, free: 5.895 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002523/0.005465, allocations: 207.4 kB / 272.4 MB, free: 5.66 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.005475, allocations: 12.06 kB / 272.4 MB, free: 5.648 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.849e-06/0.005485, allocations: 10.22 kB / 272.4 MB, free: 5.641 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.005491, allocations: 3.938 kB / 272.4 MB, free: 5.637 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.933e-05/0.005541, allocations: 31.91 kB / 272.5 MB, free: 5.605 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004768/0.006017, allocations: 0.6377 MB / 273.1 MB, free: 4.914 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001667/0.006184, allocations: 130.1 kB / 273.2 MB, free: 4.75 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.235e-05/0.006226, allocations: 51.08 kB / 273.3 MB, free: 4.688 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.928e-05/0.006246, allocations: 4.5 kB / 273.3 MB, free: 4.684 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.085e-05/0.006267, allocations: 45.39 kB / 273.3 MB, free: 4.629 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 1.142e-06/0.006268, allocations: 0 / 273.3 MB, free: 4.629 MB / 250.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001996/0.006467, allocations: 109.4 kB / 273.4 MB, free: 4.516 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.669e-05/0.006534, allocations: 115.3 kB / 273.6 MB, free: 4.379 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.526e-05/0.006629, allocations: 200.9 kB / 273.8 MB, free: 4.168 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.345e-05/0.006643, allocations: 33.64 kB / 273.8 MB, free: 4.129 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.182e-05/0.006715, allocations: 162.6 kB / 273.9 MB, free: 3.965 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.612e-05/0.006731, allocations: 23.83 kB / 274 MB, free: 3.941 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.922e-05/0.00677, allocations: 31.38 kB / 274 MB, free: 3.902 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.006914, allocations: 0.5001 MB / 274.5 MB, free: 3.391 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.511e-05/0.006929, allocations: 8 kB / 274.5 MB, free: 3.383 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.783e-05/0.006987, allocations: 89.11 kB / 274.6 MB, free: 3.258 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.513e-05/0.007072, allocations: 101.3 kB / 274.7 MB, free: 3.125 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.007074, allocations: 0 / 274.7 MB, free: 3.125 MB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001098/0.007184, allocations: 105.4 kB / 274.8 MB, free: 3.016 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/0.007197, allocations: 8 kB / 274.8 MB, free: 3.008 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.007202, allocations: 240 / 274.8 MB, free: 3.008 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.007218, allocations: 4 kB / 274.8 MB, free: 3.004 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.998e-05/0.007298, allocations: 23.98 kB / 274.8 MB, free: 2.98 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.007305, allocations: 0 / 274.8 MB, free: 2.98 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.85e-05/0.007343, allocations: 23.77 kB / 274.9 MB, free: 2.957 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.197e-06/0.007352, allocations: 8.203 kB / 274.9 MB, free: 2.949 MB / 250.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 9.395e-05/0.007446, allocations: 164.6 kB / 275 MB, free: 2.777 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001161/0.007562, allocations: 85.5 kB / 275.1 MB, free: 2.688 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.448e-05/0.007597, allocations: 16.78 kB / 275.1 MB, free: 2.672 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.007599, allocations: 0 / 275.1 MB, free: 2.672 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.007602, allocations: 4 kB / 275.1 MB, free: 2.668 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.007607, allocations: 3.984 kB / 275.1 MB, free: 2.664 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001388/0.007746, allocations: 129 kB / 275.3 MB, free: 2.512 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.007749, allocations: 4 kB / 275.3 MB, free: 2.508 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001165/0.007865, allocations: 39.91 kB / 275.3 MB, free: 2.469 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.007869, allocations: 8 kB / 275.3 MB, free: 2.461 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.007881, allocations: 4 kB / 275.3 MB, free: 2.457 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.067e-06/0.00789, allocations: 8 kB / 275.3 MB, free: 2.449 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.007892, allocations: 0 / 275.3 MB, free: 2.449 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000178/0.00807, allocations: 346.7 kB / 275.7 MB, free: 2.086 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.439e-05/0.008084, allocations: 11.91 kB / 275.7 MB, free: 2.074 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.604e-05/0.0081, allocations: 4 kB / 275.7 MB, free: 2.07 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.26e-05/0.008163, allocations: 8 kB / 275.7 MB, free: 2.062 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.726e-05/0.0082, allocations: 7.922 kB / 275.7 MB, free: 2.055 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.051e-06/0.008206, allocations: 4 kB / 275.7 MB, free: 2.051 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.513e-05/0.008261, allocations: 151.2 kB / 275.8 MB, free: 1.902 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.008261, allocations: 0 / 275.8 MB, free: 1.902 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001986/0.00846, allocations: 27.94 kB / 275.9 MB, free: 1.875 MB / 250.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.176e-05/0.008532, allocations: 95.25 kB / 276 MB, free: 1.773 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001038/0.008635, allocations: 67.47 kB / 276 MB, free: 1.703 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.273e-06/0.008637, allocations: 0 / 276 MB, free: 1.703 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.922e-05/0.008656, allocations: 20.06 kB / 276 MB, free: 1.68 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003219/0.008978, allocations: 56.97 kB / 276.1 MB, free: 1.625 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000642/0.00962, allocations: 378.5 kB / 276.5 MB, free: 1.219 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.178e-05/0.009672, allocations: 79.33 kB / 276.6 MB, free: 1.121 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.138e-05/0.009703, allocations: 12.97 kB / 276.6 MB, free: 1.109 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.376e-05/0.009787, allocations: 86.19 kB / 276.6 MB, free: 1.023 MB / 250.7 MB Notification: Performance of SimCode: time 5.71e-07/0.009787, allocations: 0 / 276.6 MB, free: 1.023 MB / 250.7 MB Notification: Performance of Templates: time 0.003276/0.01306, allocations: 1.433 MB / 278.1 MB, free: 15.66 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.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.6445077750831842]