Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.1.0-beta.om_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.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001384/0.001384, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002759/0.002759, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.512/1.512, allocations: 227.7 MB / 247.7 MB, free: 10.3 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001988/0.001988, allocations: 65.66 kB / 307.9 MB, free: 0.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1192, allocations: 50.55 MB / 358.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.003705/0.123, allocations: 1.858 MB / 360.3 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001014/0.124, allocations: 494.8 kB / 360.8 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000116/0.1241, allocations: 3.938 kB / 360.8 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001126/0.1243, allocations: 15.88 kB / 360.8 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.641e-05/0.1244, allocations: 23.72 kB / 360.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001773/0.1245, allocations: 31.95 kB / 360.8 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002004/0.1248, allocations: 99.64 kB / 360.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001625/0.1249, allocations: 49.3 kB / 361 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.294e-05/0.125, allocations: 47.8 kB / 361 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.511e-05/0.1251, allocations: 43.77 kB / 361.1 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.532e-05/0.1251, allocations: 12 kB / 361.1 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.218e-05/0.1252, allocations: 8 kB / 361.1 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.789e-05/0.1252, allocations: 15.92 kB / 361.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.945e-05/0.1253, allocations: 51.73 kB / 361.2 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001663/0.1255, allocations: 99.89 kB / 361.3 MB, free: 11.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1255, allocations: 0 / 361.3 MB, free: 11.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1255, allocations: 0 / 361.3 MB, free: 11.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.1255, allocations: 0 / 361.3 MB, free: 11.09 MB / 302.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.0006786/0.1262, allocations: 407.3 kB / 361.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.1262, allocations: 12.03 kB / 361.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.26e-05/0.1263, allocations: 8.844 kB / 361.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002148/0.1265, allocations: 196 kB / 361.9 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.453e-05/0.1265, allocations: 8.562 kB / 361.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.098e-05/0.1265, allocations: 12.38 kB / 361.9 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002968/0.1269, allocations: 115.3 kB / 362 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.555e-05/0.1269, allocations: 4 kB / 362 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.375e-05/0.1269, allocations: 4 kB / 362 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.1269, allocations: 0 / 362 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002379/0.1271, allocations: 75.88 kB / 362.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007435/0.1279, allocations: 0.5207 MB / 362.6 MB, free: 9.574 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002347/0.1281, allocations: 82.59 kB / 362.7 MB, free: 9.484 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001222/0.1283, allocations: 40.84 kB / 362.7 MB, free: 9.441 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.004e-05/0.1283, allocations: 3.984 kB / 362.7 MB, free: 9.438 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.062e-05/0.1283, allocations: 38.5 kB / 362.8 MB, free: 9.391 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.052e-06/0.1284, allocations: 0 / 362.8 MB, free: 9.391 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004313/0.1288, allocations: 121.7 kB / 362.9 MB, free: 9.266 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.433e-05/0.1288, allocations: 55.41 kB / 362.9 MB, free: 9.199 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001243/0.129, allocations: 128.8 kB / 363.1 MB, free: 9.066 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.23e-05/0.129, allocations: 33.7 kB / 363.1 MB, free: 9.027 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.554e-05/0.1291, allocations: 115.8 kB / 363.2 MB, free: 8.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.418e-05/0.1291, allocations: 31.58 kB / 363.2 MB, free: 8.879 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.07e-05/0.1292, allocations: 25.72 kB / 363.3 MB, free: 8.848 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.1293, allocations: 322.8 kB / 363.6 MB, free: 8.523 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001135/0.1295, allocations: 35.97 kB / 363.6 MB, free: 8.488 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000138/0.1296, allocations: 72.2 kB / 363.7 MB, free: 8.402 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002523/0.1299, allocations: 104.1 kB / 363.8 MB, free: 8.285 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.638e-06/0.1299, allocations: 3.984 kB / 363.8 MB, free: 8.281 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003222/0.1302, allocations: 133.4 kB / 363.9 MB, free: 8.145 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.1302, allocations: 4 kB / 363.9 MB, free: 8.141 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.567e-06/0.1302, allocations: 4 kB / 363.9 MB, free: 8.137 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.1303, allocations: 0 / 363.9 MB, free: 8.137 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000183/0.1305, allocations: 40.03 kB / 364 MB, free: 8.098 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.828e-06/0.1305, allocations: 4 kB / 364 MB, free: 8.094 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.186e-05/0.1306, allocations: 15.83 kB / 364 MB, free: 8.078 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.061e-05/0.1306, allocations: 4 kB / 364 MB, free: 8.074 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 0.0001164/0.1307, allocations: 121.8 kB / 364.1 MB, free: 7.945 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.489e-05/0.1307, allocations: 11.89 kB / 364.1 MB, free: 7.934 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.858e-05/0.1308, allocations: 12.38 kB / 364.1 MB, free: 7.922 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.1308, allocations: 0 / 364.1 MB, free: 7.922 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.728e-06/0.1308, allocations: 4 kB / 364.1 MB, free: 7.918 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.287e-06/0.1308, allocations: 0 / 364.1 MB, free: 7.918 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002613/0.1311, allocations: 197.6 kB / 364.3 MB, free: 7.676 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.1311, allocations: 0 / 364.3 MB, free: 7.676 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001391/0.1312, allocations: 23.92 kB / 364.4 MB, free: 7.652 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.1312, allocations: 0 / 364.4 MB, free: 7.652 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.716e-05/0.1313, allocations: 8 kB / 364.4 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.1313, allocations: 0 / 364.4 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1313, allocations: 0 / 364.4 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00044/0.1317, allocations: 239.3 kB / 364.6 MB, free: 7.395 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.062e-05/0.1318, allocations: 85.02 kB / 364.7 MB, free: 7.293 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.856e-05/0.1318, allocations: 0 / 364.7 MB, free: 7.293 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.127e-05/0.1319, allocations: 8.031 kB / 364.7 MB, free: 7.285 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.629e-05/0.132, allocations: 4 kB / 364.7 MB, free: 7.281 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.161e-06/0.132, allocations: 8 kB / 364.7 MB, free: 7.273 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.166e-05/0.1321, allocations: 99.36 kB / 364.8 MB, free: 7.176 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.899e-06/0.1321, allocations: 3.938 kB / 364.8 MB, free: 7.172 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002683/0.1324, allocations: 35.72 kB / 364.8 MB, free: 7.137 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 0.0001221/0.1325, allocations: 95.25 kB / 364.9 MB, free: 7.031 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002858/0.1328, allocations: 83.88 kB / 365 MB, free: 6.949 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1328, allocations: 0 / 365 MB, free: 6.949 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001138/0.1329, allocations: 44.16 kB / 365.1 MB, free: 6.906 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003974/0.1333, allocations: 22.67 kB / 365.1 MB, free: 6.887 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007971/0.1341, allocations: 386.4 kB / 365.5 MB, free: 6.477 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003808/0.1345, allocations: 0.7002 MB / 366.2 MB, free: 5.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.946e-05/0.1346, allocations: 11.44 kB / 366.2 MB, free: 5.738 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1346, allocations: 3.938 kB / 366.2 MB, free: 5.734 MB / 302.1 MB Notification: Performance of Templates: time 0.00333/0.1379, allocations: 1.271 MB / 367.4 MB, free: 4.465 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches