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.001109, allocations: 101.9 kB / 16.51 MB, free: 6.719 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.001047/0.001047, allocations: 194.5 kB / 17.43 MB, free: 6.059 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.333/1.333, allocations: 222.9 MB / 241.1 MB, free: 15.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001609/0.001609, allocations: 47.17 kB / 299.9 MB, free: 6.289 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1062, allocations: 49.44 MB / 349.4 MB, free: 4.84 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.003168/0.1094, allocations: 1.917 MB / 351.3 MB, free: 2.902 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000701/0.1101, allocations: 458.9 kB / 351.8 MB, free: 2.449 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.656e-05/0.1102, allocations: 0 / 351.8 MB, free: 2.449 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001047/0.1104, allocations: 7.938 kB / 351.8 MB, free: 2.441 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.075e-05/0.1105, allocations: 19.84 kB / 351.8 MB, free: 2.422 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001522/0.1106, allocations: 23.92 kB / 351.8 MB, free: 2.398 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001677/0.1108, allocations: 103.6 kB / 351.9 MB, free: 2.297 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001456/0.1109, allocations: 33.39 kB / 351.9 MB, free: 2.262 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.58e-05/0.111, allocations: 35.91 kB / 352 MB, free: 2.227 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.608e-05/0.1111, allocations: 39.78 kB / 352 MB, free: 2.188 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.935e-05/0.1111, allocations: 8 kB / 352 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.808e-05/0.1111, allocations: 4 kB / 352 MB, free: 2.176 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.453e-05/0.1112, allocations: 19.92 kB / 352 MB, free: 2.156 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.382e-05/0.1112, allocations: 43.73 kB / 352.1 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001368/0.1114, allocations: 99.91 kB / 352.2 MB, free: 2.016 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1114, allocations: 0 / 352.2 MB, free: 2.016 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1114, allocations: 7.922 kB / 352.2 MB, free: 2.008 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.928e-06/0.1114, allocations: 0 / 352.2 MB, free: 2.008 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.000536/0.1119, allocations: 407.3 kB / 352.6 MB, free: 1.562 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.112, allocations: 12.03 kB / 352.6 MB, free: 1.551 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.088e-05/0.112, allocations: 8.844 kB / 352.6 MB, free: 1.543 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001717/0.1122, allocations: 188.2 kB / 352.8 MB, free: 1.32 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.407e-05/0.1122, allocations: 16.55 kB / 352.8 MB, free: 1.305 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.342e-05/0.1123, allocations: 20.27 kB / 352.8 MB, free: 1.285 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002706/0.1126, allocations: 118.4 kB / 352.9 MB, free: 1.16 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.1126, allocations: 4 kB / 352.9 MB, free: 1.156 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.344e-05/0.1126, allocations: 4 kB / 353 MB, free: 1.152 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.1126, allocations: 0 / 353 MB, free: 1.152 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002188/0.1128, allocations: 79.89 kB / 353 MB, free: 1.074 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006179/0.1135, allocations: 0.5129 MB / 353.5 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000188/0.1137, allocations: 86.53 kB / 353.6 MB, free: 412 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001044/0.1138, allocations: 36.84 kB / 353.7 MB, free: 372 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.242e-05/0.1138, allocations: 0 / 353.7 MB, free: 372 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.055e-05/0.1138, allocations: 30.56 kB / 353.7 MB, free: 332 kB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 9.42e-07/0.1138, allocations: 0 / 353.7 MB, free: 332 kB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003885/0.1142, allocations: 137.6 kB / 353.8 MB, free: 188 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.285e-05/0.1143, allocations: 51.41 kB / 353.9 MB, free: 124 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001054/0.1144, allocations: 125.9 kB / 354 MB, free: 15.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.555e-05/0.1144, allocations: 29.64 kB / 354 MB, free: 15.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.403e-05/0.1145, allocations: 111.8 kB / 354.1 MB, free: 15.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.487e-05/0.1145, allocations: 27.64 kB / 354.2 MB, free: 15.81 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.384e-05/0.1146, allocations: 25.72 kB / 354.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.1147, allocations: 326.8 kB / 354.5 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001066/0.1148, allocations: 35.97 kB / 354.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001147/0.1149, allocations: 65.14 kB / 354.6 MB, free: 15.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002129/0.1151, allocations: 100.2 kB / 354.7 MB, free: 15.22 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.1151, allocations: 4 kB / 354.7 MB, free: 15.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002839/0.1154, allocations: 145.4 kB / 354.9 MB, free: 15.07 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.1154, allocations: 6.656 kB / 354.9 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.1155, allocations: 4 kB / 354.9 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.1155, allocations: 0 / 354.9 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001646/0.1156, allocations: 35.97 kB / 354.9 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.1157, allocations: 4 kB / 354.9 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.664e-05/0.1157, allocations: 11.84 kB / 354.9 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.037e-06/0.1158, allocations: 4 kB / 354.9 MB, free: 15.01 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.978e-05/0.1159, allocations: 133.8 kB / 355 MB, free: 14.87 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.446e-05/0.1159, allocations: 7.906 kB / 355.1 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.579e-05/0.1159, allocations: 12.38 kB / 355.1 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.116, allocations: 0 / 355.1 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.116, allocations: 0 / 355.1 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.116, allocations: 0 / 355.1 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002069/0.1162, allocations: 201.5 kB / 355.3 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1162, allocations: 0 / 355.3 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001392/0.1163, allocations: 19.98 kB / 355.3 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.1163, allocations: 4 kB / 355.3 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.948e-06/0.1164, allocations: 4 kB / 355.3 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.1164, allocations: 0 / 355.3 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1164, allocations: 0 / 355.3 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003967/0.1168, allocations: 235.3 kB / 355.5 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.375e-05/0.1168, allocations: 89.14 kB / 355.6 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.907e-05/0.1169, allocations: 3.984 kB / 355.6 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.922e-05/0.117, allocations: 8 kB / 355.6 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.207e-05/0.117, allocations: 7.984 kB / 355.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.751e-06/0.117, allocations: 0 / 355.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.23e-05/0.1171, allocations: 106.4 kB / 355.7 MB, free: 14.1 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1171, allocations: 0 / 355.7 MB, free: 14.1 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002458/0.1173, allocations: 27.84 kB / 355.8 MB, free: 14.07 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.428e-05/0.1174, allocations: 99.19 kB / 355.9 MB, free: 13.97 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002717/0.1177, allocations: 83.88 kB / 355.9 MB, free: 13.89 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.1177, allocations: 4.281 kB / 355.9 MB, free: 13.88 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001085/0.1178, allocations: 35.91 kB / 356 MB, free: 13.85 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000401/0.1182, allocations: 27.86 kB / 356 MB, free: 13.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007171/0.119, allocations: 396.1 kB / 356.4 MB, free: 13.41 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002766/0.1193, allocations: 0.7013 MB / 357.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.438e-05/0.1193, allocations: 8.422 kB / 357.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.033e-05/0.1194, allocations: 11.44 kB / 357.1 MB, free: 12.66 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1194, allocations: 0 / 357.1 MB, free: 12.66 MB / 302.1 MB Notification: Performance of Templates: time 0.003097/0.1225, allocations: 0.8903 MB / 358 MB, free: 11.78 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins/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