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.001135/0.001135, allocations: 110.6 kB / 16.62 MB, free: 6.961 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.00113/0.00113, allocations: 190 kB / 17.54 MB, free: 6.066 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.308/1.308, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00094/0.0009401, allocations: 48.09 kB / 300.1 MB, free: 6.211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09755/0.09851, allocations: 49.45 MB / 349.6 MB, free: 4.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.002924/0.1015, allocations: 1.91 MB / 351.5 MB, free: 2.82 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006534/0.1021, allocations: 450.9 kB / 351.9 MB, free: 2.375 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.648e-05/0.1022, allocations: 4 kB / 351.9 MB, free: 2.371 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001068/0.1023, allocations: 11.86 kB / 351.9 MB, free: 2.359 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.734e-05/0.1024, allocations: 19.86 kB / 352 MB, free: 2.34 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001329/0.1026, allocations: 23.97 kB / 352 MB, free: 2.316 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000145/0.1027, allocations: 103.6 kB / 352.1 MB, free: 2.215 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001351/0.1028, allocations: 37.38 kB / 352.1 MB, free: 2.176 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.581e-05/0.1029, allocations: 43.84 kB / 352.2 MB, free: 2.133 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.722e-05/0.103, allocations: 43.78 kB / 352.2 MB, free: 2.09 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.037e-05/0.103, allocations: 12 kB / 352.2 MB, free: 2.078 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.045e-05/0.103, allocations: 8 kB / 352.2 MB, free: 2.07 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.029e-05/0.1031, allocations: 23.86 kB / 352.2 MB, free: 2.047 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.036e-05/0.1031, allocations: 47.73 kB / 352.3 MB, free: 2 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001264/0.1033, allocations: 95.95 kB / 352.4 MB, free: 1.906 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.1033, allocations: 0 / 352.4 MB, free: 1.906 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1033, allocations: 3.938 kB / 352.4 MB, free: 1.902 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.1033, allocations: 7.938 kB / 352.4 MB, free: 1.895 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.0005002/0.1038, allocations: 407.3 kB / 352.8 MB, free: 1.449 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.16e-05/0.1038, allocations: 8.031 kB / 352.8 MB, free: 1.441 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.762e-05/0.1039, allocations: 12.84 kB / 352.8 MB, free: 1.43 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001658/0.1041, allocations: 200.1 kB / 353 MB, free: 1.195 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.083e-05/0.1041, allocations: 8.562 kB / 353 MB, free: 1.188 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.823e-05/0.1041, allocations: 12.28 kB / 353 MB, free: 1.176 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002534/0.1044, allocations: 115.3 kB / 353.1 MB, free: 1.051 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.1044, allocations: 8 kB / 353.2 MB, free: 1.043 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.17e-05/0.1044, allocations: 0 / 353.2 MB, free: 1.043 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.1044, allocations: 4 kB / 353.2 MB, free: 1.039 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002182/0.1046, allocations: 79.83 kB / 353.2 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006366/0.1053, allocations: 0.5207 MB / 353.8 MB, free: 384 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001871/0.1055, allocations: 74.61 kB / 353.8 MB, free: 300 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001083/0.1056, allocations: 36.83 kB / 353.9 MB, free: 260 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.77e-05/0.1056, allocations: 8 kB / 353.9 MB, free: 252 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.413e-05/0.1057, allocations: 34.56 kB / 353.9 MB, free: 208 kB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.072e-06/0.1057, allocations: 3.938 kB / 353.9 MB, free: 204 kB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003824/0.1061, allocations: 125.7 kB / 354 MB, free: 72 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.55e-05/0.1061, allocations: 51.41 kB / 354.1 MB, free: 8 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.1062, allocations: 121.8 kB / 354.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.036e-05/0.1062, allocations: 33.7 kB / 354.2 MB, free: 15.84 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.867e-05/0.1063, allocations: 119.8 kB / 354.4 MB, free: 15.72 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.258e-05/0.1063, allocations: 23.64 kB / 354.4 MB, free: 15.7 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.151e-05/0.1064, allocations: 25.7 kB / 354.4 MB, free: 15.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.891e-05/0.1065, allocations: 322.8 kB / 354.7 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001048/0.1066, allocations: 31.97 kB / 354.7 MB, free: 15.31 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000126/0.1067, allocations: 78.45 kB / 354.8 MB, free: 15.22 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000212/0.107, allocations: 100.2 kB / 354.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.107, allocations: 4 kB / 354.9 MB, free: 15.1 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002857/0.1073, allocations: 137.4 kB / 355.1 MB, free: 14.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.1073, allocations: 11.92 kB / 355.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.1073, allocations: 0 / 355.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.1073, allocations: 4 kB / 355.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001592/0.1075, allocations: 27.98 kB / 355.1 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.1075, allocations: 4.062 kB / 355.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.752e-05/0.1076, allocations: 23.83 kB / 355.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.957e-06/0.1076, allocations: 4 kB / 355.1 MB, free: 14.89 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 9.197e-05/0.1077, allocations: 121.8 kB / 355.3 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.868e-05/0.1077, allocations: 7.906 kB / 355.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.379e-05/0.1078, allocations: 8.375 kB / 355.3 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.1078, allocations: 7.984 kB / 355.3 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.1078, allocations: 0 / 355.3 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.1078, allocations: 3.984 kB / 355.3 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002014/0.108, allocations: 201.6 kB / 355.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.108, allocations: 0 / 355.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000132/0.1081, allocations: 19.98 kB / 355.5 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.1082, allocations: 3.984 kB / 355.5 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.511e-05/0.1082, allocations: 7.938 kB / 355.5 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.1082, allocations: 4 kB / 355.5 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.1082, allocations: 0 / 355.5 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003863/0.1086, allocations: 231.3 kB / 355.7 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.92e-05/0.1086, allocations: 81.02 kB / 355.8 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.123e-05/0.1086, allocations: 4 kB / 355.8 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.263e-05/0.1087, allocations: 8.031 kB / 355.8 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/0.1089, allocations: 4 kB / 355.8 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.873e-06/0.1089, allocations: 4 kB / 355.8 MB, free: 14.09 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.341e-05/0.1089, allocations: 94.5 kB / 355.9 MB, free: 14 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1089, allocations: 8 kB / 355.9 MB, free: 13.99 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002437/0.1092, allocations: 27.84 kB / 356 MB, free: 13.96 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.0001109/0.1093, allocations: 107.1 kB / 356.1 MB, free: 13.85 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002622/0.1096, allocations: 83.89 kB / 356.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1096, allocations: 0 / 356.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001002/0.1097, allocations: 40.5 kB / 356.2 MB, free: 13.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003386/0.11, allocations: 27.86 kB / 356.2 MB, free: 13.7 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007117/0.1108, allocations: 397.1 kB / 356.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002778/0.111, allocations: 0.7001 MB / 357.3 MB, free: 12.56 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.779e-05/0.1111, allocations: 8.375 kB / 357.3 MB, free: 12.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.917e-05/0.1111, allocations: 19.44 kB / 357.3 MB, free: 12.53 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1111, allocations: 0 / 357.3 MB, free: 12.53 MB / 302.1 MB Notification: Performance of Templates: time 0.003591/0.1147, allocations: 0.9276 MB / 358.3 MB, free: 11.61 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