Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.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.Continuous,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.Continuous") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,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.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001108/0.001107, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001122/0.001122, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.386/1.386, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001662/0.001663, allocations: 53.88 kB / 301.3 MB, free: 5.859 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1206, allocations: 49.45 MB / 350.7 MB, free: 4.41 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.003391/0.124, allocations: 1.841 MB / 352.6 MB, free: 2.547 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007564/0.1248, allocations: 462.8 kB / 353 MB, free: 2.09 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.257e-05/0.1249, allocations: 0 / 353 MB, free: 2.09 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001132/0.1251, allocations: 15.81 kB / 353 MB, free: 2.074 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.376e-05/0.1252, allocations: 23.78 kB / 353.1 MB, free: 2.051 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001574/0.1253, allocations: 31.89 kB / 353.1 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001606/0.1255, allocations: 103.6 kB / 353.2 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001429/0.1256, allocations: 37.38 kB / 353.2 MB, free: 1.879 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.142e-05/0.1257, allocations: 43.8 kB / 353.3 MB, free: 1.836 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.804e-05/0.1258, allocations: 51.77 kB / 353.3 MB, free: 1.785 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.698e-05/0.1258, allocations: 8 kB / 353.3 MB, free: 1.777 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.071e-05/0.1259, allocations: 8 kB / 353.3 MB, free: 1.77 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.619e-05/0.1259, allocations: 19.92 kB / 353.4 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.017e-05/0.126, allocations: 51.73 kB / 353.4 MB, free: 1.699 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001527/0.1261, allocations: 95.95 kB / 353.5 MB, free: 1.605 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.506e-06/0.1261, allocations: 0 / 353.5 MB, free: 1.605 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1261, allocations: 3.938 kB / 353.5 MB, free: 1.602 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.682e-06/0.1261, allocations: 0 / 353.5 MB, free: 1.602 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.000608/0.1268, allocations: 407.3 kB / 353.9 MB, free: 1.156 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.1268, allocations: 12.03 kB / 353.9 MB, free: 1.145 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.745e-05/0.1269, allocations: 12.84 kB / 353.9 MB, free: 1.133 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001985/0.1271, allocations: 192.1 kB / 354.1 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.253e-05/0.1271, allocations: 8.562 kB / 354.1 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.162e-05/0.1271, allocations: 12.28 kB / 354.1 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002783/0.1274, allocations: 122.4 kB / 354.3 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.1274, allocations: 4 kB / 354.3 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.659e-05/0.1274, allocations: 8 kB / 354.3 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.1275, allocations: 0 / 354.3 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002273/0.1277, allocations: 75.89 kB / 354.3 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006439/0.1283, allocations: 0.5207 MB / 354.9 MB, free: 88 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002112/0.1286, allocations: 82.58 kB / 354.9 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001108/0.1287, allocations: 36.8 kB / 355 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.818e-06/0.1287, allocations: 4 kB / 355 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.342e-05/0.1287, allocations: 34.55 kB / 355 MB, free: 15.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.342e-06/0.1287, allocations: 0 / 355 MB, free: 15.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004134/0.1292, allocations: 125.7 kB / 355.1 MB, free: 15.78 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.015e-05/0.1292, allocations: 59.34 kB / 355.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001106/0.1293, allocations: 133.1 kB / 355.3 MB, free: 15.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.614e-05/0.1294, allocations: 29.7 kB / 355.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.397e-05/0.1294, allocations: 115.8 kB / 355.5 MB, free: 15.42 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.659e-05/0.1295, allocations: 27.64 kB / 355.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.791e-05/0.1295, allocations: 25.72 kB / 355.5 MB, free: 15.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.1297, allocations: 322.8 kB / 355.8 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001118/0.1298, allocations: 35.97 kB / 355.9 MB, free: 15 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001232/0.1299, allocations: 68.27 kB / 355.9 MB, free: 14.92 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002255/0.1301, allocations: 104.1 kB / 356 MB, free: 14.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1302, allocations: 0 / 356 MB, free: 14.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003044/0.1305, allocations: 133.4 kB / 356.2 MB, free: 14.67 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.1305, allocations: 7.938 kB / 356.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.1305, allocations: 4 kB / 356.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.1305, allocations: 0 / 356.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001691/0.1307, allocations: 39.91 kB / 356.2 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.1307, allocations: 8.125 kB / 356.2 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.614e-05/0.1308, allocations: 11.84 kB / 356.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.112e-05/0.1308, allocations: 7.984 kB / 356.2 MB, free: 14.59 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.974e-05/0.1309, allocations: 125.7 kB / 356.4 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.432e-05/0.1309, allocations: 7.906 kB / 356.4 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.474e-05/0.131, allocations: 12.38 kB / 356.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.131, allocations: 3.984 kB / 356.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.131, allocations: 0 / 356.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.131, allocations: 4 kB / 356.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001995/0.1312, allocations: 197.6 kB / 356.6 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.1312, allocations: 0 / 356.6 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001343/0.1314, allocations: 19.98 kB / 356.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.1314, allocations: 0 / 356.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.335e-05/0.1314, allocations: 8 kB / 356.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.1314, allocations: 0 / 356.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1314, allocations: 0 / 356.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004204/0.1318, allocations: 247.3 kB / 356.9 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.53e-05/0.1319, allocations: 85.11 kB / 356.9 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.006e-05/0.1319, allocations: 3.938 kB / 356.9 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.08e-05/0.132, allocations: 4 kB / 357 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.86e-05/0.1321, allocations: 3.984 kB / 357 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.471e-06/0.1321, allocations: 4 kB / 357 MB, free: 13.78 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.814e-05/0.1321, allocations: 99.27 kB / 357.1 MB, free: 13.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1321, allocations: 4 kB / 357.1 MB, free: 13.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002488/0.1324, allocations: 27.84 kB / 357.1 MB, free: 13.65 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.797e-05/0.1325, allocations: 99.19 kB / 357.2 MB, free: 13.55 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002971/0.1328, allocations: 87.88 kB / 357.3 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.1328, allocations: 0 / 357.3 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001099/0.1329, allocations: 40.16 kB / 357.3 MB, free: 13.42 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004022/0.1333, allocations: 23.88 kB / 357.3 MB, free: 13.4 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000724/0.1341, allocations: 394.3 kB / 357.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002537/0.1343, allocations: 0.7002 MB / 358.4 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.736e-05/0.1344, allocations: 19.38 kB / 358.4 MB, free: 12.23 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1344, allocations: 0 / 358.4 MB, free: 12.23 MB / 302.1 MB Notification: Performance of Templates: time 0.003102/0.1375, allocations: 1.263 MB / 359.7 MB, free: 10.97 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches