Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.001634/0.001634, allocations: 119.4 kB / 18.41 MB, free: 4.531 MB / 14.72 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.00185/0.00185, allocations: 192.3 kB / 21.34 MB, free: 1.602 MB / 14.72 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 1.4/1.4, allocations: 222.9 MB / 247 MB, free: 4.211 MB / 190.1 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.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001587/0.001587, allocations: 51.92 kB / 358.6 MB, free: 8.328 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1228, allocations: 49.44 MB / 408.1 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.004214/0.1271, allocations: 2.02 MB / 410.1 MB, free: 4.816 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001194/0.1283, allocations: 0.5609 MB / 410.7 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001202/0.1284, allocations: 7.938 kB / 410.7 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001561/0.1286, allocations: 19.8 kB / 410.7 MB, free: 4.223 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002247/0.1289, allocations: 39.7 kB / 410.7 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003562/0.1292, allocations: 63.81 kB / 410.8 MB, free: 4.121 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002031/0.1294, allocations: 127.6 kB / 410.9 MB, free: 3.996 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001825/0.1296, allocations: 57.83 kB / 411 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.42e-05/0.1297, allocations: 51.8 kB / 411 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001157/0.1299, allocations: 59.7 kB / 411.1 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.386e-05/0.1299, allocations: 12 kB / 411.1 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.462e-05/0.1299, allocations: 12 kB / 411.1 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.85e-05/0.13, allocations: 39.83 kB / 411.1 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.932e-05/0.1301, allocations: 67.55 kB / 411.2 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002751/0.1304, allocations: 143.3 kB / 411.4 MB, free: 3.559 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1304, allocations: 0 / 411.4 MB, free: 3.559 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1304, allocations: 0 / 411.4 MB, free: 3.559 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.1304, allocations: 0 / 411.4 MB, free: 3.559 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0008423/0.1313, allocations: 464.2 kB / 411.8 MB, free: 3.059 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.213e-05/0.1313, allocations: 16.02 kB / 411.8 MB, free: 3.043 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.161e-05/0.1314, allocations: 24.84 kB / 411.8 MB, free: 3.02 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003745/0.1318, allocations: 212.1 kB / 412.1 MB, free: 2.773 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.309e-05/0.1318, allocations: 16.38 kB / 412.1 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.149e-05/0.1319, allocations: 12.38 kB / 412.1 MB, free: 2.746 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006137/0.1325, allocations: 265.7 kB / 412.3 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.1325, allocations: 7.938 kB / 412.3 MB, free: 2.457 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.723e-05/0.1325, allocations: 4 kB / 412.4 MB, free: 2.453 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.1326, allocations: 4 kB / 412.4 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002815/0.1328, allocations: 83.88 kB / 412.4 MB, free: 2.367 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008683/0.1337, allocations: 0.6039 MB / 413 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003899/0.1341, allocations: 147.9 kB / 413.2 MB, free: 1.516 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001882/0.1343, allocations: 74.64 kB / 413.3 MB, free: 1.434 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.998e-05/0.1344, allocations: 3.938 kB / 413.3 MB, free: 1.43 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.99e-05/0.1344, allocations: 50.53 kB / 413.3 MB, free: 1.371 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.413e-06/0.1344, allocations: 0 / 413.3 MB, free: 1.371 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006346/0.1351, allocations: 185.3 kB / 413.5 MB, free: 1.184 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.056e-05/0.1352, allocations: 110.8 kB / 413.6 MB, free: 1.051 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001771/0.1354, allocations: 163.7 kB / 413.8 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.15e-05/0.1354, allocations: 29.83 kB / 413.8 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.027e-05/0.1355, allocations: 112.5 kB / 413.9 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.69e-05/0.1355, allocations: 27.78 kB / 413.9 MB, free: 0.707 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.967e-05/0.1356, allocations: 45.66 kB / 414 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001813/0.1358, allocations: 318.8 kB / 414.3 MB, free: 344 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001251/0.1359, allocations: 35.97 kB / 414.3 MB, free: 308 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000208/0.1361, allocations: 139 kB / 414.5 MB, free: 120 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000338/0.1365, allocations: 189.5 kB / 414.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.1365, allocations: 0 / 414.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004132/0.1369, allocations: 197.1 kB / 414.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.436e-05/0.1369, allocations: 8 kB / 414.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.137, allocations: 4.469 kB / 414.8 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.286e-05/0.137, allocations: 8 kB / 414.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001686/0.1372, allocations: 47.91 kB / 414.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.275e-05/0.1372, allocations: 4 kB / 414.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001137/0.1373, allocations: 23.88 kB / 414.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.592e-05/0.1373, allocations: 8 kB / 414.9 MB, free: 15.58 MB / 350.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.0001553/0.1375, allocations: 145.6 kB / 415.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001793/0.1377, allocations: 93.53 kB / 415.2 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.788e-05/0.1378, allocations: 24.7 kB / 415.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.1378, allocations: 0 / 415.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/0.1378, allocations: 4 kB / 415.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.104e-06/0.1378, allocations: 0 / 415.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003429/0.1382, allocations: 225.9 kB / 415.4 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.1382, allocations: 0 / 415.4 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001891/0.1384, allocations: 31.98 kB / 415.4 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.1384, allocations: 0 / 415.4 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.973e-05/0.1384, allocations: 11.98 kB / 415.5 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.538e-06/0.1384, allocations: 3.938 kB / 415.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.1384, allocations: 11.94 kB / 415.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006468/0.1391, allocations: 379.4 kB / 415.8 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001066/0.1392, allocations: 105 kB / 415.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.912e-05/0.1392, allocations: 4 kB / 415.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001405/0.1394, allocations: 16.05 kB / 416 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.671e-05/0.1394, allocations: 4 kB / 416 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.728e-06/0.1395, allocations: 4 kB / 416 MB, free: 14.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001064/0.1396, allocations: 115.2 kB / 416.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1396, allocations: 0 / 416.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003317/0.1399, allocations: 31.94 kB / 416.1 MB, free: 14.29 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.0001399/0.1401, allocations: 107.2 kB / 416.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003798/0.1404, allocations: 126.1 kB / 416.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1405, allocations: 0 / 416.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001049/0.1406, allocations: 28.91 kB / 416.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005122/0.1411, allocations: 66.59 kB / 416.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008953/0.142, allocations: 450.9 kB / 416.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005263/0.1425, allocations: 0.7278 MB / 417.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.889e-05/0.1426, allocations: 15.44 kB / 417.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1426, allocations: 0 / 417.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of Templates: time 0.004034/0.1467, allocations: 1.629 MB / 419.3 MB, free: 11.09 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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: 7.349912604084238]