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.0009684/0.0009684, allocations: 77.97 kB / 21.42 MB, free: 3.07 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.000972/0.000972, allocations: 167.9 kB / 24.82 MB, free: 8.871 MB / 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 1.017/1.017, allocations: 177.1 MB / 205.3 MB, free: 5.504 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.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 1.603e-06/1.603e-06, allocations: 3.938 kB / 273.4 MB, free: 1.328 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.631e-05/1.791e-05, allocations: 2.312 kB / 273.4 MB, free: 1.324 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003113/0.003131, allocations: 2.049 MB / 275.4 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001286/0.004417, allocations: 0.5141 MB / 275.9 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001305/0.004547, allocations: 3.938 kB / 275.9 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001233/0.00467, allocations: 19.8 kB / 276 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001043/0.004775, allocations: 35.7 kB / 276 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003404/0.005115, allocations: 55.81 kB / 276 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001785/0.005294, allocations: 127.4 kB / 276.2 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001388/0.005432, allocations: 37.61 kB / 276.2 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001285/0.005561, allocations: 71.86 kB / 276.3 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.21e-05/0.005643, allocations: 39.89 kB / 276.3 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.499e-05/0.005668, allocations: 8 kB / 276.3 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.833e-05/0.005686, allocations: 15.94 kB / 276.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.272e-05/0.005729, allocations: 23.91 kB / 276.4 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.87e-05/0.005778, allocations: 35.92 kB / 276.4 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000191/0.005969, allocations: 95.58 kB / 276.5 MB, free: 14.18 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.334e-06/0.005971, allocations: 0 / 276.5 MB, free: 14.18 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.005972, allocations: 0 / 276.5 MB, free: 14.18 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.005977, allocations: 0 / 276.5 MB, free: 14.18 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0004645/0.006442, allocations: 452.1 kB / 276.9 MB, free: 13.71 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.006483, allocations: 8.031 kB / 276.9 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.048e-05/0.006524, allocations: 24.84 kB / 277 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000164/0.006688, allocations: 156.3 kB / 277.1 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.643e-05/0.006704, allocations: 12.38 kB / 277.1 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.912e-05/0.006733, allocations: 16.38 kB / 277.1 MB, free: 13.47 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002803/0.007014, allocations: 220.7 kB / 277.4 MB, free: 13.22 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.007024, allocations: 192 / 277.4 MB, free: 13.22 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.007034, allocations: 4.375 kB / 277.4 MB, free: 13.22 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.007044, allocations: 7.938 kB / 277.4 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.252e-05/0.007097, allocations: 31.91 kB / 277.4 MB, free: 13.18 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004851/0.007582, allocations: 0.6407 MB / 278 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000136/0.007718, allocations: 129.3 kB / 278.2 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.421e-05/0.007762, allocations: 51.12 kB / 278.2 MB, free: 12.26 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.883e-05/0.007781, allocations: 4 kB / 278.2 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.655e-05/0.007808, allocations: 49.38 kB / 278.3 MB, free: 12.2 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.443e-06/0.007809, allocations: 0 / 278.3 MB, free: 12.2 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001778/0.007987, allocations: 105.5 kB / 278.4 MB, free: 12.09 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.151e-05/0.008048, allocations: 118.9 kB / 278.5 MB, free: 11.95 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.422e-05/0.008133, allocations: 184.8 kB / 278.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.15e-05/0.008144, allocations: 29.7 kB / 278.7 MB, free: 11.71 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.532e-05/0.008209, allocations: 166.6 kB / 278.9 MB, free: 11.55 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.699e-05/0.008226, allocations: 27.78 kB / 278.9 MB, free: 11.52 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.317e-05/0.00826, allocations: 27.36 kB / 278.9 MB, free: 11.48 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.008391, allocations: 0.4961 MB / 279.4 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.36e-05/0.008404, allocations: 7.984 kB / 279.4 MB, free: 10.97 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.318e-05/0.008457, allocations: 77.48 kB / 279.5 MB, free: 10.86 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.049e-05/0.008538, allocations: 105.4 kB / 279.6 MB, free: 10.72 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.00854, allocations: 0 / 279.6 MB, free: 10.72 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001035/0.008644, allocations: 97.44 kB / 279.7 MB, free: 10.62 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/0.008655, allocations: 4.219 kB / 279.7 MB, free: 10.62 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.578e-06/0.00866, allocations: 8 kB / 279.7 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.008671, allocations: 4 kB / 279.7 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.457e-05/0.008746, allocations: 23.98 kB / 279.7 MB, free: 10.58 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.008751, allocations: 3.938 kB / 279.7 MB, free: 10.58 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.126e-05/0.008792, allocations: 23.83 kB / 279.8 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.151e-06/0.008798, allocations: 4 kB / 279.8 MB, free: 10.55 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 8.281e-05/0.008881, allocations: 164.6 kB / 279.9 MB, free: 10.38 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.904e-05/0.00896, allocations: 69.58 kB / 280 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.447e-05/0.008995, allocations: 12.78 kB / 280 MB, free: 10.29 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.008998, allocations: 8 kB / 280 MB, free: 10.29 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.055e-06/0.009001, allocations: 0 / 280 MB, free: 10.29 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.009006, allocations: 0 / 280 MB, free: 10.29 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001424/0.009149, allocations: 137 kB / 280.2 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.00915, allocations: 0 / 280.2 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.597e-05/0.009226, allocations: 31.92 kB / 280.2 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.009231, allocations: 4 kB / 280.2 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.413e-05/0.009245, allocations: 4.234 kB / 280.2 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.009248, allocations: 3.984 kB / 280.2 MB, free: 10.08 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.00925, allocations: 4 kB / 280.2 MB, free: 10.08 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002151/0.009466, allocations: 350.7 kB / 280.5 MB, free: 9.711 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.472e-05/0.00948, allocations: 11.89 kB / 280.6 MB, free: 9.699 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.64e-05/0.009497, allocations: 3.938 kB / 280.6 MB, free: 9.695 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.323e-05/0.00956, allocations: 12 kB / 280.6 MB, free: 9.684 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.189e-05/0.009592, allocations: 7.984 kB / 280.6 MB, free: 9.676 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.032e-06/0.009598, allocations: 8.062 kB / 280.6 MB, free: 9.668 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.526e-05/0.009653, allocations: 139.2 kB / 280.7 MB, free: 9.531 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009653, allocations: 0 / 280.7 MB, free: 9.531 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001986/0.009852, allocations: 23.95 kB / 280.7 MB, free: 9.508 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 (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 8.137e-05/0.009933, allocations: 107.2 kB / 280.8 MB, free: 9.395 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001067/0.01004, allocations: 67.47 kB / 280.9 MB, free: 9.324 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.183e-06/0.01004, allocations: 0 / 280.9 MB, free: 9.324 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.386e-05/0.01006, allocations: 23.61 kB / 280.9 MB, free: 9.297 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002913/0.01036, allocations: 39.58 kB / 281 MB, free: 9.258 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006589/0.01102, allocations: 339 kB / 281.3 MB, free: 8.891 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.88e-05/0.01107, allocations: 75.27 kB / 281.4 MB, free: 8.797 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.754e-05/0.0111, allocations: 4.5 kB / 281.4 MB, free: 8.793 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.048e-05/0.01117, allocations: 90.12 kB / 281.5 MB, free: 8.703 MB / 266.7 MB Notification: Performance of SimCode: time 7.21e-07/0.01117, allocations: 0 / 281.5 MB, free: 8.703 MB / 266.7 MB Notification: Performance of Templates: time 0.00299/0.01416, allocations: 1.285 MB / 282.8 MB, free: 7.477 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.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.7453431230969727]