Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001534/0.001534, allocations: 111.4 kB / 17.68 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00152/0.00152, allocations: 192 kB / 18.62 MB, free: 4.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.414/1.414, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001878/0.001878, allocations: 46.64 kB / 302 MB, free: 5.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.119, allocations: 49.45 MB / 351.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.00347/0.1225, allocations: 1.985 MB / 353.5 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001011/0.1235, allocations: 0.5336 MB / 354 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001675/0.1237, allocations: 4 kB / 354 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001236/0.1238, allocations: 15.8 kB / 354 MB, free: 1.125 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001865/0.1241, allocations: 35.72 kB / 354.1 MB, free: 1.09 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002805/0.1243, allocations: 55.5 kB / 354.1 MB, free: 1.039 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001819/0.1245, allocations: 123.5 kB / 354.2 MB, free: 0.918 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001562/0.1247, allocations: 56.39 kB / 354.3 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.827e-05/0.1248, allocations: 55.78 kB / 354.3 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.759e-05/0.1249, allocations: 47.77 kB / 354.4 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.608e-05/0.1249, allocations: 12 kB / 354.4 MB, free: 0.75 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.126e-05/0.1249, allocations: 12 kB / 354.4 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.403e-05/0.125, allocations: 31.84 kB / 354.4 MB, free: 0.707 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.626e-05/0.1251, allocations: 63.67 kB / 354.5 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001764/0.1252, allocations: 127.5 kB / 354.6 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1253, allocations: 4 kB / 354.6 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1253, allocations: 0 / 354.6 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.581e-06/0.1253, allocations: 0 / 354.6 MB, free: 0.5156 MB / 286.1 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.0005813/0.1259, allocations: 431 kB / 355.1 MB, free: 48 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.1259, allocations: 8.031 kB / 355.1 MB, free: 40 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.062e-05/0.1259, allocations: 16.78 kB / 355.1 MB, free: 24 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002727/0.1262, allocations: 208 kB / 355.3 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.41e-05/0.1262, allocations: 16.36 kB / 355.3 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.551e-05/0.1263, allocations: 12.38 kB / 355.3 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004679/0.1268, allocations: 251.4 kB / 355.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.1268, allocations: 3.938 kB / 355.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.543e-05/0.1268, allocations: 4 kB / 355.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.316e-06/0.1268, allocations: 7.984 kB / 355.6 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000234/0.1271, allocations: 87.88 kB / 355.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005911/0.1277, allocations: 0.5843 MB / 356.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003104/0.128, allocations: 155.9 kB / 356.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001426/0.1281, allocations: 70.64 kB / 356.5 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.732e-05/0.1282, allocations: 4 kB / 356.5 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.153e-05/0.1282, allocations: 38.48 kB / 356.5 MB, free: 14.42 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.322e-06/0.1282, allocations: 0 / 356.5 MB, free: 14.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004861/0.1287, allocations: 193.2 kB / 356.7 MB, free: 14.22 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.5e-05/0.1288, allocations: 114.8 kB / 356.8 MB, free: 14.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.846e-05/0.1289, allocations: 134.2 kB / 356.9 MB, free: 13.94 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.436e-05/0.1289, allocations: 29.7 kB / 357 MB, free: 13.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.177e-05/0.129, allocations: 111.8 kB / 357.1 MB, free: 13.79 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.307e-05/0.129, allocations: 27.7 kB / 357.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.878e-05/0.1291, allocations: 37.84 kB / 357.1 MB, free: 13.72 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.241e-05/0.1292, allocations: 322.8 kB / 357.5 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.1293, allocations: 35.97 kB / 357.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000156/0.1294, allocations: 137.6 kB / 357.6 MB, free: 13.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002844/0.1297, allocations: 181.5 kB / 357.8 MB, free: 12.95 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.1297, allocations: 4 kB / 357.8 MB, free: 12.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003679/0.1301, allocations: 201 kB / 358 MB, free: 12.75 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/0.1301, allocations: 4 kB / 358 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.1301, allocations: 4 kB / 358 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/0.1302, allocations: 4 kB / 358 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001505/0.1303, allocations: 48.39 kB / 358.1 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.144e-05/0.1304, allocations: 15.92 kB / 358.1 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001039/0.1305, allocations: 19.84 kB / 358.1 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.232e-05/0.1305, allocations: 11.94 kB / 358.1 MB, free: 12.64 MB / 302.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 9.011e-05/0.1306, allocations: 137.6 kB / 358.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001447/0.1307, allocations: 93.52 kB / 358.3 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.142e-05/0.1308, allocations: 20.72 kB / 358.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.1308, allocations: 0 / 358.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.299e-06/0.1308, allocations: 0 / 358.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.1308, allocations: 8 kB / 358.4 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002484/0.1311, allocations: 209.4 kB / 358.6 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.1311, allocations: 0 / 358.6 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001735/0.1313, allocations: 40.2 kB / 358.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.145e-06/0.1313, allocations: 480 / 358.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.45e-05/0.1313, allocations: 4 kB / 358.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.1313, allocations: 0 / 358.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1313, allocations: 0 / 358.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005134/0.1318, allocations: 395.2 kB / 359 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.725e-05/0.1319, allocations: 88.98 kB / 359.1 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.35e-05/0.1319, allocations: 8 kB / 359.1 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001328/0.1321, allocations: 7.984 kB / 359.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.397e-05/0.1321, allocations: 0 / 359.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.819e-06/0.1321, allocations: 12.06 kB / 359.1 MB, free: 11.53 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.666e-05/0.1322, allocations: 102.1 kB / 359.2 MB, free: 11.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1322, allocations: 0 / 359.2 MB, free: 11.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003206/0.1325, allocations: 31.91 kB / 359.2 MB, free: 11.4 MB / 302.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 9.835e-05/0.1326, allocations: 103.2 kB / 359.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003076/0.1329, allocations: 124.2 kB / 359.5 MB, free: 11.17 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1329, allocations: 0 / 359.5 MB, free: 11.17 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.825e-05/0.133, allocations: 27.97 kB / 359.5 MB, free: 11.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004517/0.1335, allocations: 63.88 kB / 359.6 MB, free: 11.08 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006727/0.1342, allocations: 394.5 kB / 359.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002706/0.1345, allocations: 0.7084 MB / 360.6 MB, free: 9.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.536e-05/0.1345, allocations: 13.08 kB / 360.7 MB, free: 9.918 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.7e-05/0.1346, allocations: 15.44 kB / 360.7 MB, free: 9.902 MB / 302.1 MB Notification: Performance of SimCode: time 1.9e-07/0.1346, allocations: 0 / 360.7 MB, free: 9.902 MB / 302.1 MB Notification: Performance of Templates: time 0.003907/0.1385, allocations: 1.204 MB / 361.9 MB, free: 8.715 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches