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.00121/0.00121, allocations: 114.8 kB / 17.69 MB, free: 5.312 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.001124/0.001124, allocations: 191 kB / 18.63 MB, free: 4.379 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.45/1.45, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001197, allocations: 53.84 kB / 302.1 MB, free: 5.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1222, allocations: 49.44 MB / 351.5 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003795/0.126, allocations: 2 MB / 353.5 MB, free: 1.703 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009456/0.127, allocations: 0.5259 MB / 354 MB, free: 1.172 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001036/0.1271, allocations: 4 kB / 354 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001076/0.1272, allocations: 15.8 kB / 354 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001412/0.1274, allocations: 31.72 kB / 354.1 MB, free: 1.121 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002339/0.1276, allocations: 59.88 kB / 354.1 MB, free: 1.062 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001802/0.1278, allocations: 123.6 kB / 354.3 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001765/0.128, allocations: 53.27 kB / 354.3 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.879e-05/0.1281, allocations: 51.78 kB / 354.4 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.817e-05/0.1282, allocations: 63.7 kB / 354.4 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.38e-05/0.1282, allocations: 8 kB / 354.4 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.961e-05/0.1283, allocations: 15.94 kB / 354.4 MB, free: 0.75 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.079e-05/0.1283, allocations: 23.92 kB / 354.5 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.576e-05/0.1284, allocations: 63.66 kB / 354.5 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001584/0.1285, allocations: 127.5 kB / 354.7 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.1285, allocations: 0 / 354.7 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1285, allocations: 0 / 354.7 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.139e-06/0.1286, allocations: 0 / 354.7 MB, free: 0.5391 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.0005712/0.1291, allocations: 431 kB / 355.1 MB, free: 72 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/0.1292, allocations: 12.03 kB / 355.1 MB, free: 60 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.374e-05/0.1292, allocations: 8.844 kB / 355.1 MB, free: 52 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002717/0.1295, allocations: 216 kB / 355.3 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.687e-05/0.1295, allocations: 12.36 kB / 355.3 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.486e-05/0.1296, allocations: 12.38 kB / 355.3 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005014/0.1301, allocations: 251.4 kB / 355.6 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.1301, allocations: 3.938 kB / 355.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.64e-05/0.1301, allocations: 8 kB / 355.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.1301, allocations: 0 / 355.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002345/0.1304, allocations: 91.86 kB / 355.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007105/0.1311, allocations: 0.5843 MB / 356.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000328/0.1314, allocations: 147.9 kB / 356.4 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000154/0.1316, allocations: 74.64 kB / 356.5 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.914e-05/0.1316, allocations: 7.984 kB / 356.5 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.573e-05/0.1317, allocations: 42.5 kB / 356.5 MB, free: 14.44 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.343e-06/0.1317, allocations: 0 / 356.5 MB, free: 14.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004806/0.1321, allocations: 185.2 kB / 356.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.791e-05/0.1322, allocations: 114.8 kB / 356.8 MB, free: 14.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001203/0.1323, allocations: 138 kB / 357 MB, free: 13.97 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.836e-05/0.1324, allocations: 29.7 kB / 357 MB, free: 13.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.477e-05/0.1325, allocations: 111.8 kB / 357.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.538e-05/0.1325, allocations: 31.62 kB / 357.1 MB, free: 13.79 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.056e-05/0.1325, allocations: 37.7 kB / 357.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.1327, allocations: 322.8 kB / 357.5 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001125/0.1328, allocations: 35.97 kB / 357.5 MB, free: 13.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001674/0.133, allocations: 140.8 kB / 357.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002763/0.1332, allocations: 185.5 kB / 357.8 MB, free: 12.97 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.1333, allocations: 4 kB / 357.8 MB, free: 12.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003513/0.1336, allocations: 201.2 kB / 358 MB, free: 12.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.1336, allocations: 8.469 kB / 358 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.1337, allocations: 4 kB / 358 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.104e-05/0.1337, allocations: 8 kB / 358 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001457/0.1338, allocations: 43.91 kB / 358.1 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.309e-05/0.1338, allocations: 7.938 kB / 358.1 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001312/0.134, allocations: 27.83 kB / 358.1 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.892e-05/0.134, allocations: 8 kB / 358.1 MB, free: 12.66 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 0.0001105/0.1341, allocations: 137.7 kB / 358.3 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001562/0.1343, allocations: 93.84 kB / 358.4 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.913e-05/0.1344, allocations: 16.72 kB / 358.4 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.1344, allocations: 4 kB / 358.4 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.1344, allocations: 0 / 358.4 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.1344, allocations: 7.984 kB / 358.4 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002656/0.1347, allocations: 205.5 kB / 358.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.1347, allocations: 0 / 358.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001642/0.1349, allocations: 31.98 kB / 358.6 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.1349, allocations: 4 kB / 358.6 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.383e-05/0.1349, allocations: 4 kB / 358.6 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.1349, allocations: 8 kB / 358.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.1349, allocations: 3.984 kB / 358.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005001/0.1354, allocations: 375.3 kB / 359 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.388e-05/0.1355, allocations: 88.98 kB / 359.1 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.166e-05/0.1355, allocations: 8.062 kB / 359.1 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001327/0.1356, allocations: 11.98 kB / 359.1 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.605e-05/0.1357, allocations: 7.984 kB / 359.1 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.255e-05/0.1357, allocations: 4 kB / 359.1 MB, free: 11.56 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.948e-05/0.1358, allocations: 99.27 kB / 359.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.154e-06/0.1358, allocations: 0 / 359.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005717/0.1364, allocations: 31.84 kB / 359.3 MB, free: 11.43 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 0.0001625/0.1366, allocations: 111.2 kB / 359.4 MB, free: 11.32 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004529/0.1371, allocations: 119.7 kB / 359.5 MB, free: 11.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.1371, allocations: 0 / 359.5 MB, free: 11.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001308/0.1372, allocations: 24.92 kB / 359.5 MB, free: 11.18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007111/0.1379, allocations: 67.94 kB / 359.6 MB, free: 11.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008433/0.1388, allocations: 395.7 kB / 360 MB, free: 10.69 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003088/0.1391, allocations: 0.7162 MB / 360.7 MB, free: 9.949 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.376e-05/0.1392, allocations: 13.08 kB / 360.7 MB, free: 9.938 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.898e-05/0.1392, allocations: 15.44 kB / 360.7 MB, free: 9.922 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1392, allocations: 0 / 360.7 MB, free: 9.922 MB / 302.1 MB Notification: Performance of Templates: time 0.003958/0.1432, allocations: 1.196 MB / 361.9 MB, free: 8.742 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 cvode -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