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.001506/0.001506, allocations: 114.5 kB / 17.74 MB, free: 5.359 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.001714/0.001714, allocations: 188.5 kB / 18.67 MB, free: 4.441 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.443/1.443, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001085/0.001085, allocations: 51.94 kB / 352 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2871/0.2882, allocations: 49.43 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.003359/0.2916, allocations: 1.864 MB / 403.2 MB, free: 7.023 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008499/0.2925, allocations: 458.8 kB / 403.7 MB, free: 6.57 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001228/0.2926, allocations: 4 kB / 403.7 MB, free: 6.566 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001146/0.2928, allocations: 15.8 kB / 403.7 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.04e-05/0.2929, allocations: 23.8 kB / 403.7 MB, free: 6.527 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001589/0.2931, allocations: 31.94 kB / 403.8 MB, free: 6.496 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001714/0.2932, allocations: 103.6 kB / 403.9 MB, free: 6.395 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001555/0.2934, allocations: 45.38 kB / 403.9 MB, free: 6.348 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.16e-05/0.2935, allocations: 31.86 kB / 403.9 MB, free: 6.316 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.949e-05/0.2936, allocations: 51.7 kB / 404 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.561e-05/0.2936, allocations: 8 kB / 404 MB, free: 6.258 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.234e-05/0.2937, allocations: 12 kB / 404 MB, free: 6.246 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.741e-05/0.2937, allocations: 23.86 kB / 404 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.863e-05/0.2938, allocations: 47.73 kB / 404.1 MB, free: 6.176 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001854/0.2939, allocations: 99.47 kB / 404.2 MB, free: 6.082 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.284e-06/0.294, allocations: 4 kB / 404.2 MB, free: 6.078 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.294, allocations: 0 / 404.2 MB, free: 6.078 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.294, allocations: 4 kB / 404.2 MB, free: 6.074 MB / 318.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.0005761/0.2946, allocations: 404.6 kB / 404.6 MB, free: 5.633 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.2946, allocations: 8.031 kB / 404.6 MB, free: 5.625 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.819e-05/0.2947, allocations: 8.844 kB / 404.6 MB, free: 5.617 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002678/0.2949, allocations: 200.1 kB / 404.8 MB, free: 5.383 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.423e-05/0.295, allocations: 4.562 kB / 404.8 MB, free: 5.379 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.228e-05/0.295, allocations: 8.375 kB / 404.8 MB, free: 5.371 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002842/0.2953, allocations: 125 kB / 404.9 MB, free: 5.238 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.2953, allocations: 0 / 404.9 MB, free: 5.238 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/0.2953, allocations: 4 kB / 404.9 MB, free: 5.234 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.2953, allocations: 4 kB / 404.9 MB, free: 5.23 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002272/0.2956, allocations: 71.83 kB / 405 MB, free: 5.16 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007758/0.2964, allocations: 0.5285 MB / 405.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001979/0.2966, allocations: 74.61 kB / 405.6 MB, free: 4.484 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001135/0.2967, allocations: 44.77 kB / 405.7 MB, free: 4.438 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.224e-05/0.2967, allocations: 7.984 kB / 405.7 MB, free: 4.43 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.564e-05/0.2967, allocations: 30.56 kB / 405.7 MB, free: 4.391 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.674e-06/0.2968, allocations: 4 kB / 405.7 MB, free: 4.387 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004042/0.2972, allocations: 117.7 kB / 405.8 MB, free: 4.266 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.483e-05/0.2972, allocations: 51.41 kB / 405.9 MB, free: 4.203 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001172/0.2973, allocations: 141.1 kB / 406 MB, free: 4.059 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.443e-05/0.2974, allocations: 25.7 kB / 406 MB, free: 4.027 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.32e-05/0.2974, allocations: 111.8 kB / 406.1 MB, free: 3.914 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.799e-05/0.2975, allocations: 31.55 kB / 406.2 MB, free: 3.883 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.846e-05/0.2975, allocations: 25.72 kB / 406.2 MB, free: 3.852 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.2977, allocations: 326.8 kB / 406.5 MB, free: 3.523 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001111/0.2978, allocations: 39.91 kB / 406.5 MB, free: 3.484 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001183/0.2979, allocations: 64.27 kB / 406.6 MB, free: 3.406 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002283/0.2981, allocations: 112.1 kB / 406.7 MB, free: 3.281 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.2981, allocations: 0 / 406.7 MB, free: 3.281 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000289/0.2984, allocations: 129.4 kB / 406.8 MB, free: 3.148 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.2985, allocations: 8 kB / 406.9 MB, free: 3.141 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.2985, allocations: 0 / 406.9 MB, free: 3.141 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.093e-05/0.2985, allocations: 3.984 kB / 406.9 MB, free: 3.137 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001713/0.2987, allocations: 32.05 kB / 406.9 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/0.2987, allocations: 8 kB / 406.9 MB, free: 3.098 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.143e-05/0.2988, allocations: 11.98 kB / 406.9 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.107e-06/0.2988, allocations: 4 kB / 406.9 MB, free: 3.082 MB / 318.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.526e-05/0.2989, allocations: 125.7 kB / 407 MB, free: 2.949 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.248e-05/0.299, allocations: 7.906 kB / 407 MB, free: 2.941 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.729e-05/0.299, allocations: 12.38 kB / 407.1 MB, free: 2.926 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.299, allocations: 0 / 407.1 MB, free: 2.926 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.299, allocations: 0 / 407.1 MB, free: 2.926 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.299, allocations: 4 kB / 407.1 MB, free: 2.922 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002168/0.2993, allocations: 201.5 kB / 407.3 MB, free: 2.676 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.2993, allocations: 0 / 407.3 MB, free: 2.676 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001434/0.2994, allocations: 27.92 kB / 407.3 MB, free: 2.648 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.726e-06/0.2994, allocations: 0 / 407.3 MB, free: 2.648 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.243e-05/0.2994, allocations: 4 kB / 407.3 MB, free: 2.645 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.2994, allocations: 3.984 kB / 407.3 MB, free: 2.641 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2995, allocations: 0 / 407.3 MB, free: 2.641 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004102/0.2999, allocations: 235.3 kB / 407.5 MB, free: 2.395 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.076e-05/0.2999, allocations: 85.02 kB / 407.6 MB, free: 2.293 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.948e-05/0.3, allocations: 4 kB / 407.6 MB, free: 2.289 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001067/0.3001, allocations: 8.031 kB / 407.6 MB, free: 2.281 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.618e-05/0.3001, allocations: 4 kB / 407.6 MB, free: 2.277 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.201e-06/0.3001, allocations: 0 / 407.6 MB, free: 2.277 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.168e-05/0.3002, allocations: 107.2 kB / 407.7 MB, free: 2.172 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3002, allocations: 4.031 kB / 407.7 MB, free: 2.168 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002534/0.3005, allocations: 23.88 kB / 407.7 MB, free: 2.145 MB / 318.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.0001074/0.3006, allocations: 107.2 kB / 407.9 MB, free: 2.031 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002619/0.3008, allocations: 75.89 kB / 407.9 MB, free: 1.957 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.3008, allocations: 0 / 407.9 MB, free: 1.957 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001009/0.301, allocations: 40.22 kB / 408 MB, free: 1.918 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003281/0.3013, allocations: 27.86 kB / 408 MB, free: 1.891 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007502/0.3021, allocations: 385.3 kB / 408.4 MB, free: 1.48 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002975/0.3024, allocations: 0.7078 MB / 409.1 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.569e-05/0.3024, allocations: 11.44 kB / 409.1 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of SimCode: time 1.734e-06/0.3024, allocations: 0 / 409.1 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of Templates: time 0.002976/0.3054, allocations: 1.296 MB / 410.4 MB, free: 15.44 MB / 334.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