Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.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.Elementary.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 115.9 kB / 17.74 MB, free: 5.34 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.001365/0.001365, allocations: 187.1 kB / 18.67 MB, free: 4.414 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.328/1.328, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001069/0.001069, allocations: 47.92 kB / 352 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2851/0.2861, allocations: 49.43 MB / 401.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.003042/0.2892, allocations: 1.511 MB / 402.9 MB, free: 7.34 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004262/0.2897, allocations: 139.5 kB / 403 MB, free: 7.203 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.053e-05/0.2898, allocations: 0 / 403 MB, free: 7.203 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.77e-05/0.2899, allocations: 7.938 kB / 403.1 MB, free: 7.195 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001356/0.29, allocations: 7.922 kB / 403.1 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002433/0.2903, allocations: 42.59 kB / 403.1 MB, free: 7.148 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.036e-05/0.2904, allocations: 31.92 kB / 403.1 MB, free: 7.117 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001067/0.2905, allocations: 15.98 kB / 403.1 MB, free: 7.102 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.332e-05/0.2905, allocations: 11.94 kB / 403.2 MB, free: 7.09 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.069e-05/0.2906, allocations: 15.86 kB / 403.2 MB, free: 7.074 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.088e-05/0.2906, allocations: 7.984 kB / 403.2 MB, free: 7.066 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.034e-05/0.2906, allocations: 0 / 403.2 MB, free: 7.066 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.294e-05/0.2907, allocations: 19.92 kB / 403.2 MB, free: 7.047 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.049e-05/0.2907, allocations: 19.88 kB / 403.2 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001036/0.2908, allocations: 47.77 kB / 403.3 MB, free: 6.98 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.2908, allocations: 0 / 403.3 MB, free: 6.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.2908, allocations: 0 / 403.3 MB, free: 6.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.285e-06/0.2909, allocations: 4 kB / 403.3 MB, free: 6.977 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005186/0.2914, allocations: 371.2 kB / 403.6 MB, free: 6.57 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.2914, allocations: 11.97 kB / 403.6 MB, free: 6.559 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.086e-05/0.2915, allocations: 8.844 kB / 403.7 MB, free: 6.551 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002332/0.2917, allocations: 200.1 kB / 403.8 MB, free: 6.316 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.124e-05/0.2917, allocations: 4.375 kB / 403.9 MB, free: 6.312 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.212e-05/0.2917, allocations: 384 / 403.9 MB, free: 6.312 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002785/0.292, allocations: 117.6 kB / 404 MB, free: 6.18 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.288e-06/0.292, allocations: 192 / 404 MB, free: 6.18 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.2921, allocations: 3.938 kB / 404 MB, free: 6.176 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/0.2921, allocations: 0 / 404 MB, free: 6.176 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.325e-05/0.2921, allocations: 23.92 kB / 404 MB, free: 6.152 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003132/0.2925, allocations: 257.8 kB / 404.2 MB, free: 5.848 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002069/0.2927, allocations: 146.2 kB / 404.4 MB, free: 5.668 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.311e-05/0.2928, allocations: 25.77 kB / 404.4 MB, free: 5.637 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.858e-05/0.2928, allocations: 4 kB / 404.4 MB, free: 5.633 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.258e-05/0.2928, allocations: 34.56 kB / 404.5 MB, free: 5.59 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 2.695e-06/0.2928, allocations: 4 kB / 404.5 MB, free: 5.586 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002384/0.2931, allocations: 77.52 kB / 404.5 MB, free: 5.504 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.483e-05/0.2931, allocations: 81.09 kB / 404.6 MB, free: 5.406 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001139/0.2932, allocations: 134.1 kB / 404.7 MB, free: 5.262 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.57e-05/0.2933, allocations: 25.7 kB / 404.8 MB, free: 5.23 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.627e-05/0.2933, allocations: 91.98 kB / 404.9 MB, free: 5.137 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.187e-06/0.2933, allocations: 4 kB / 404.9 MB, free: 5.133 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.495e-05/0.2934, allocations: 25.83 kB / 404.9 MB, free: 5.102 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.2935, allocations: 314.8 kB / 405.2 MB, free: 4.785 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.849e-05/0.2935, allocations: 7.984 kB / 405.2 MB, free: 4.777 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.658e-05/0.2936, allocations: 35.38 kB / 405.2 MB, free: 4.73 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.5e-05/0.2937, allocations: 51.36 kB / 405.3 MB, free: 4.668 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.2937, allocations: 4 kB / 405.3 MB, free: 4.664 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001241/0.2938, allocations: 69.45 kB / 405.4 MB, free: 4.59 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.2938, allocations: 4 kB / 405.4 MB, free: 4.586 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.2939, allocations: 4 kB / 405.4 MB, free: 4.582 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.2939, allocations: 4.125 kB / 405.4 MB, free: 4.578 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.87e-05/0.2939, allocations: 8 kB / 405.4 MB, free: 4.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/0.294, allocations: 3.984 kB / 405.4 MB, free: 4.566 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.174e-05/0.294, allocations: 4 kB / 405.4 MB, free: 4.562 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.891e-06/0.294, allocations: 0 / 405.4 MB, free: 4.562 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (step.y,sample1.y,assignClock.y,assignClock.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.039e-05/0.2941, allocations: 129.7 kB / 405.5 MB, free: 4.426 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.189e-05/0.2942, allocations: 49.59 kB / 405.6 MB, free: 4.371 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.013e-05/0.2942, allocations: 8.25 kB / 405.6 MB, free: 4.355 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.2942, allocations: 4.328 kB / 405.6 MB, free: 4.352 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.2942, allocations: 4 kB / 405.6 MB, free: 4.348 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.2942, allocations: 0 / 405.6 MB, free: 4.348 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001616/0.2944, allocations: 173.5 kB / 405.7 MB, free: 4.129 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.2944, allocations: 3.984 kB / 405.8 MB, free: 4.125 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.645e-05/0.2945, allocations: 11.98 kB / 405.8 MB, free: 4.113 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.2945, allocations: 0 / 405.8 MB, free: 4.113 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.662e-06/0.2945, allocations: 4 kB / 405.8 MB, free: 4.109 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.2945, allocations: 0 / 405.8 MB, free: 4.109 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.2945, allocations: 0 / 405.8 MB, free: 4.109 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001597/0.2947, allocations: 176.2 kB / 405.9 MB, free: 3.918 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.171e-05/0.2947, allocations: 89.09 kB / 406 MB, free: 3.812 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.233e-05/0.2948, allocations: 0 / 406 MB, free: 3.812 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.671e-05/0.2948, allocations: 4 kB / 406 MB, free: 3.809 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.063e-05/0.2949, allocations: 0 / 406 MB, free: 3.809 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.745e-06/0.2949, allocations: 3.938 kB / 406 MB, free: 3.805 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.411e-05/0.2949, allocations: 110.1 kB / 406.1 MB, free: 3.699 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2949, allocations: 4 kB / 406.1 MB, free: 3.695 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002138/0.2952, allocations: 8 kB / 406.2 MB, free: 3.688 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 (step.y,assignClock.u,assignClock.y,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0001053/0.2953, allocations: 103.2 kB / 406.3 MB, free: 3.578 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001376/0.2954, allocations: 35.91 kB / 406.3 MB, free: 3.543 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.2954, allocations: 0 / 406.3 MB, free: 3.543 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 2.978e-05/0.2955, allocations: 4.25 kB / 406.3 MB, free: 3.539 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003238/0.2958, allocations: 31.95 kB / 406.3 MB, free: 3.508 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003221/0.2961, allocations: 180.1 kB / 406.5 MB, free: 3.297 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002751/0.2964, allocations: 0.6922 MB / 407.2 MB, free: 2.578 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.461e-05/0.2964, allocations: 11.44 kB / 407.2 MB, free: 2.566 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2964, allocations: 0 / 407.2 MB, free: 2.566 MB / 318.1 MB Notification: Performance of Templates: time 0.002124/0.2986, allocations: 0.6991 MB / 407.9 MB, free: 1.863 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample1/Sample1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches