Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.001875/0.001875, allocations: 91.61 kB / 20.96 MB, free: 3.461 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.002231/0.002231, allocations: 161.3 kB / 24.27 MB, free: 152 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 1.544/1.544, allocations: 177.1 MB / 204.6 MB, free: 5.602 MB / 186.7 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.ClockedWithDiscretizedContinuousController,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.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.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.282e-06/1.282e-06, allocations: 0 / 272.3 MB, free: 1.859 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.344e-05/2.473e-05, allocations: 2.312 kB / 272.3 MB, free: 1.855 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.00374/0.003765, allocations: 2.076 MB / 274.4 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001028/0.004793, allocations: 0.5219 MB / 274.9 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.744e-05/0.004891, allocations: 7.938 kB / 274.9 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001134/0.005004, allocations: 15.8 kB / 274.9 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 8.251e-05/0.005087, allocations: 27.73 kB / 274.9 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002655/0.005352, allocations: 51.86 kB / 275 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002049/0.005557, allocations: 131.5 kB / 275.1 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000146/0.005703, allocations: 45.89 kB / 275.2 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001375/0.005841, allocations: 87.73 kB / 275.2 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.6e-05/0.005927, allocations: 35.91 kB / 275.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.985e-05/0.005956, allocations: 12 kB / 275.3 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.247e-05/0.005979, allocations: 8 kB / 275.3 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.597e-05/0.006015, allocations: 23.91 kB / 275.3 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.258e-05/0.006077, allocations: 47.84 kB / 275.4 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002379/0.006315, allocations: 127.5 kB / 275.5 MB, free: 14.62 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.444e-06/0.006318, allocations: 0 / 275.5 MB, free: 14.62 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.42e-07/0.006319, allocations: 0 / 275.5 MB, free: 14.62 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.006323, allocations: 0 / 275.5 MB, free: 14.62 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0006566/0.00698, allocations: 463.7 kB / 275.9 MB, free: 14.14 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.007019, allocations: 12.03 kB / 276 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.497e-05/0.007084, allocations: 24.84 kB / 276 MB, free: 14.1 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002567/0.007341, allocations: 160.3 kB / 276.1 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.762e-05/0.007358, allocations: 12.38 kB / 276.2 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.461e-05/0.007393, allocations: 12.38 kB / 276.2 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004861/0.007879, allocations: 248 kB / 276.4 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.007894, allocations: 192 / 276.4 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.861e-05/0.007913, allocations: 8.375 kB / 276.4 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.00792, allocations: 3.938 kB / 276.4 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002041/0.008125, allocations: 71.89 kB / 276.5 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007888/0.008913, allocations: 0.6485 MB / 277.1 MB, free: 12.84 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003661/0.009279, allocations: 165.3 kB / 277.3 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001474/0.009427, allocations: 83.12 kB / 277.4 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.472e-05/0.009452, allocations: 4 kB / 277.4 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.981e-05/0.009481, allocations: 37.38 kB / 277.4 MB, free: 12.49 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.142e-06/0.009483, allocations: 0 / 277.4 MB, free: 12.49 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004588/0.009941, allocations: 169.4 kB / 277.6 MB, free: 12.32 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.46e-05/0.01004, allocations: 114.8 kB / 277.7 MB, free: 12.18 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001858/0.01022, allocations: 209.2 kB / 277.9 MB, free: 11.96 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.106e-05/0.01024, allocations: 25.7 kB / 277.9 MB, free: 11.93 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001197/0.01036, allocations: 170.9 kB / 278.1 MB, free: 11.76 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.99e-05/0.01039, allocations: 23.84 kB / 278.1 MB, free: 11.74 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.914e-05/0.01045, allocations: 31.38 kB / 278.1 MB, free: 11.7 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002515/0.0107, allocations: 0.4961 MB / 278.6 MB, free: 11.19 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.437e-05/0.01079, allocations: 27.98 kB / 278.7 MB, free: 11.16 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001459/0.01093, allocations: 105.2 kB / 278.8 MB, free: 11.02 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002306/0.01116, allocations: 133.4 kB / 278.9 MB, free: 10.86 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.01117, allocations: 0 / 278.9 MB, free: 10.86 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002792/0.01145, allocations: 133.4 kB / 279 MB, free: 10.72 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.01146, allocations: 8 kB / 279 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.01147, allocations: 224 / 279 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.206e-05/0.01149, allocations: 8 kB / 279 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001119/0.0116, allocations: 23.98 kB / 279.1 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.403e-05/0.01162, allocations: 11.92 kB / 279.1 MB, free: 10.67 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.841e-05/0.01172, allocations: 11.88 kB / 279.1 MB, free: 10.66 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.806e-05/0.01173, allocations: 8 kB / 279.1 MB, free: 10.65 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 0.0002073/0.01194, allocations: 172.6 kB / 279.3 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001984/0.01214, allocations: 93.53 kB / 279.4 MB, free: 10.38 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.477e-05/0.0122, allocations: 16.78 kB / 279.4 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.159e-06/0.01221, allocations: 4 kB / 279.4 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.01221, allocations: 4 kB / 279.4 MB, free: 10.35 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.528e-06/0.01222, allocations: 3.984 kB / 279.4 MB, free: 10.35 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003863/0.01261, allocations: 168.5 kB / 279.6 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.01261, allocations: 0 / 279.6 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003384/0.01295, allocations: 43.91 kB / 279.6 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.01295, allocations: 0 / 279.6 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.265e-05/0.01298, allocations: 4 kB / 279.6 MB, free: 10.1 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.01298, allocations: 0 / 279.6 MB, free: 10.1 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.01298, allocations: 0 / 279.6 MB, free: 10.1 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007468/0.01373, allocations: 481.3 kB / 280.1 MB, free: 9.609 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.471e-05/0.01375, allocations: 19.89 kB / 280.1 MB, free: 9.59 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.216e-05/0.01377, allocations: 0 / 280.1 MB, free: 9.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001545/0.01393, allocations: 8 kB / 280.1 MB, free: 9.582 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.478e-05/0.01398, allocations: 7.984 kB / 280.1 MB, free: 9.574 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.514e-06/0.01399, allocations: 0 / 280.1 MB, free: 9.574 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001267/0.01412, allocations: 155.1 kB / 280.3 MB, free: 9.422 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.01412, allocations: 4 kB / 280.3 MB, free: 9.418 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003336/0.01445, allocations: 23.94 kB / 280.3 MB, free: 9.395 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 0.0001396/0.01459, allocations: 115.2 kB / 280.4 MB, free: 9.273 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003489/0.01494, allocations: 95.75 kB / 280.5 MB, free: 9.176 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.01494, allocations: 0 / 280.5 MB, free: 9.176 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001226/0.01506, allocations: 35.61 kB / 280.5 MB, free: 9.137 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005338/0.0156, allocations: 60.02 kB / 280.6 MB, free: 9.078 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008633/0.01646, allocations: 373.8 kB / 281 MB, free: 8.68 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002107/0.01667, allocations: 114.3 kB / 281.1 MB, free: 8.547 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.039e-05/0.01671, allocations: 4.984 kB / 281.1 MB, free: 8.543 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.575e-05/0.01676, allocations: 16.48 kB / 281.1 MB, free: 8.523 MB / 266.7 MB Notification: Performance of SimCode: time 5.21e-07/0.01676, allocations: 3.938 kB / 281.1 MB, free: 8.52 MB / 266.7 MB Notification: Performance of Templates: time 0.004802/0.02156, allocations: 1.337 MB / 282.4 MB, free: 7.242 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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: 4.594480208936147]