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: 110 kB / 17.06 MB, free: 6.023 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.001755/0.001755, allocations: 191 kB / 18 MB, free: 5.105 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.464/1.464, allocations: 222.9 MB / 241.7 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00109/0.00109, allocations: 51.92 kB / 351.3 MB, free: 3.293 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3071/0.3082, allocations: 49.43 MB / 400.7 MB, free: 9 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.00323/0.3115, allocations: 1.876 MB / 402.6 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008221/0.3123, allocations: 450.8 kB / 403 MB, free: 6.742 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001197/0.3125, allocations: 3.938 kB / 403 MB, free: 6.738 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001481/0.3126, allocations: 19.86 kB / 403 MB, free: 6.719 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.296e-05/0.3127, allocations: 19.78 kB / 403.1 MB, free: 6.699 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001726/0.3129, allocations: 27.95 kB / 403.1 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001807/0.3131, allocations: 107.6 kB / 403.2 MB, free: 6.566 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001591/0.3132, allocations: 33.39 kB / 403.2 MB, free: 6.531 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.795e-05/0.3134, allocations: 51.78 kB / 403.3 MB, free: 6.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.825e-05/0.3134, allocations: 47.72 kB / 403.3 MB, free: 6.434 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.134e-05/0.3135, allocations: 8 kB / 403.3 MB, free: 6.426 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.812e-05/0.3135, allocations: 8 kB / 403.3 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.796e-05/0.3135, allocations: 19.92 kB / 403.3 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.607e-05/0.3136, allocations: 51.73 kB / 403.4 MB, free: 6.348 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000162/0.3137, allocations: 100.9 kB / 403.5 MB, free: 6.25 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3138, allocations: 0 / 403.5 MB, free: 6.25 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3138, allocations: 0 / 403.5 MB, free: 6.25 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.3138, allocations: 0 / 403.5 MB, free: 6.25 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.0006342/0.3144, allocations: 407.3 kB / 403.9 MB, free: 5.805 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/0.3145, allocations: 12.03 kB / 403.9 MB, free: 5.793 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.12e-05/0.3145, allocations: 8.844 kB / 403.9 MB, free: 5.785 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002336/0.3148, allocations: 196.1 kB / 404.1 MB, free: 5.555 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.359e-05/0.3148, allocations: 4.562 kB / 404.1 MB, free: 5.551 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.298e-05/0.3148, allocations: 12.38 kB / 404.1 MB, free: 5.539 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002727/0.3151, allocations: 132.9 kB / 404.3 MB, free: 5.398 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/0.3151, allocations: 0 / 404.3 MB, free: 5.398 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.353e-05/0.3151, allocations: 0 / 404.3 MB, free: 5.398 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.3151, allocations: 4 kB / 404.3 MB, free: 5.395 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002191/0.3154, allocations: 71.89 kB / 404.3 MB, free: 5.324 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006575/0.316, allocations: 0.5207 MB / 404.8 MB, free: 4.738 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001912/0.3162, allocations: 82.53 kB / 404.9 MB, free: 4.648 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001156/0.3164, allocations: 40.83 kB / 405 MB, free: 4.605 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.036e-05/0.3164, allocations: 0 / 405 MB, free: 4.605 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.23e-05/0.3164, allocations: 38.56 kB / 405 MB, free: 4.559 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.3164, allocations: 0 / 405 MB, free: 4.559 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.000396/0.3168, allocations: 125.7 kB / 405.1 MB, free: 4.43 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.046e-05/0.3169, allocations: 55.34 kB / 405.2 MB, free: 4.363 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000114/0.317, allocations: 129.2 kB / 405.3 MB, free: 4.23 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.246e-05/0.317, allocations: 33.7 kB / 405.3 MB, free: 4.191 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.748e-05/0.3171, allocations: 111.9 kB / 405.5 MB, free: 4.078 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.503e-05/0.3171, allocations: 31.5 kB / 405.5 MB, free: 4.047 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.862e-05/0.3172, allocations: 29.7 kB / 405.5 MB, free: 4.012 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.3174, allocations: 322.8 kB / 405.8 MB, free: 3.688 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001199/0.3175, allocations: 27.98 kB / 405.9 MB, free: 3.66 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001211/0.3176, allocations: 72.27 kB / 405.9 MB, free: 3.574 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002192/0.3178, allocations: 104.1 kB / 406 MB, free: 3.457 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.3178, allocations: 0 / 406 MB, free: 3.457 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002682/0.3181, allocations: 141.4 kB / 406.2 MB, free: 3.312 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.3181, allocations: 4 kB / 406.2 MB, free: 3.309 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.3182, allocations: 4 kB / 406.2 MB, free: 3.305 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.3182, allocations: 0 / 406.2 MB, free: 3.305 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001623/0.3183, allocations: 35.92 kB / 406.2 MB, free: 3.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/0.3184, allocations: 7.984 kB / 406.2 MB, free: 3.262 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.697e-05/0.3184, allocations: 8.125 kB / 406.2 MB, free: 3.254 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.046e-05/0.3185, allocations: 8 kB / 406.2 MB, free: 3.246 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 0.0001023/0.3186, allocations: 125.7 kB / 406.4 MB, free: 3.113 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.75e-05/0.3186, allocations: 7.906 kB / 406.4 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.021e-05/0.3186, allocations: 16.36 kB / 406.4 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.3186, allocations: 0 / 406.4 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.3187, allocations: 0 / 406.4 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.3187, allocations: 0 / 406.4 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002022/0.3189, allocations: 205.5 kB / 406.6 MB, free: 2.836 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.3189, allocations: 4 kB / 406.6 MB, free: 2.832 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001259/0.319, allocations: 23.98 kB / 406.6 MB, free: 2.809 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.319, allocations: 4 kB / 406.6 MB, free: 2.805 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.788e-06/0.319, allocations: 0 / 406.6 MB, free: 2.805 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.319, allocations: 0 / 406.6 MB, free: 2.805 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.319, allocations: 0 / 406.6 MB, free: 2.805 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003714/0.3194, allocations: 235.3 kB / 406.8 MB, free: 2.559 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.754e-05/0.3195, allocations: 85.02 kB / 406.9 MB, free: 2.457 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.793e-05/0.3195, allocations: 4.031 kB / 406.9 MB, free: 2.453 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.553e-05/0.3196, allocations: 8 kB / 406.9 MB, free: 2.445 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.149e-05/0.3196, allocations: 7.984 kB / 406.9 MB, free: 2.438 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.238e-06/0.3196, allocations: 0 / 406.9 MB, free: 2.438 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.362e-05/0.3197, allocations: 95.27 kB / 407 MB, free: 2.344 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.004e-06/0.3197, allocations: 96 / 407 MB, free: 2.344 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000238/0.32, allocations: 31.81 kB / 407.1 MB, free: 2.312 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 9.645e-05/0.3201, allocations: 103.2 kB / 407.2 MB, free: 2.203 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002547/0.3203, allocations: 83.88 kB / 407.2 MB, free: 2.121 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3203, allocations: 0 / 407.2 MB, free: 2.121 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001034/0.3204, allocations: 35.92 kB / 407.3 MB, free: 2.086 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003229/0.3208, allocations: 28.66 kB / 407.3 MB, free: 2.059 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006687/0.3215, allocations: 360.7 kB / 407.7 MB, free: 1.676 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003128/0.3218, allocations: 0.7039 MB / 408.4 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.625e-05/0.3218, allocations: 12.42 kB / 408.4 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.277e-05/0.3219, allocations: 11.44 kB / 408.4 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3219, allocations: 0 / 408.4 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of Templates: time 0.003417/0.3253, allocations: 1.011 MB / 409.4 MB, free: 15.92 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/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