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.001179/0.001179, allocations: 115.8 kB / 17.74 MB, free: 5.344 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.001175/0.001175, allocations: 189.5 kB / 18.67 MB, free: 4.422 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.474/1.474, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 51.92 kB / 352 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3204/0.3216, allocations: 49.43 MB / 401.4 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.002854/0.3245, allocations: 1.516 MB / 402.9 MB, free: 7.531 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003884/0.3249, allocations: 135.5 kB / 403 MB, free: 7.398 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.079e-05/0.325, allocations: 4 kB / 403 MB, free: 7.395 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.725e-05/0.325, allocations: 7.922 kB / 403.1 MB, free: 7.387 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001225/0.3251, allocations: 11.94 kB / 403.1 MB, free: 7.375 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002557/0.3254, allocations: 39.53 kB / 403.1 MB, free: 7.34 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.736e-05/0.3255, allocations: 31.91 kB / 403.1 MB, free: 7.309 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.3256, allocations: 12 kB / 403.1 MB, free: 7.297 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.418e-05/0.3257, allocations: 15.92 kB / 403.2 MB, free: 7.281 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.411e-05/0.3257, allocations: 15.88 kB / 403.2 MB, free: 7.266 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.883e-05/0.3257, allocations: 7.938 kB / 403.2 MB, free: 7.258 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.028e-05/0.3258, allocations: 0 / 403.2 MB, free: 7.258 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.134e-05/0.3258, allocations: 23.91 kB / 403.2 MB, free: 7.234 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.969e-05/0.3259, allocations: 15.88 kB / 403.2 MB, free: 7.219 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.854e-05/0.326, allocations: 47.77 kB / 403.3 MB, free: 7.172 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.326, allocations: 0 / 403.3 MB, free: 7.172 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.326, allocations: 0 / 403.3 MB, free: 7.172 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.326, allocations: 0 / 403.3 MB, free: 7.172 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.0004612/0.3265, allocations: 376.4 kB / 403.6 MB, free: 6.754 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.3265, allocations: 12.03 kB / 403.7 MB, free: 6.742 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.478e-05/0.3266, allocations: 8.844 kB / 403.7 MB, free: 6.734 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002452/0.3268, allocations: 188.2 kB / 403.8 MB, free: 6.512 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.3268, allocations: 12.31 kB / 403.9 MB, free: 6.5 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.351e-05/0.3268, allocations: 384 / 403.9 MB, free: 6.5 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002827/0.3271, allocations: 117.6 kB / 404 MB, free: 6.367 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.3272, allocations: 4.188 kB / 404 MB, free: 6.363 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.354e-05/0.3272, allocations: 7.922 kB / 404 MB, free: 6.355 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.3272, allocations: 0 / 404 MB, free: 6.355 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.544e-05/0.3273, allocations: 19.98 kB / 404 MB, free: 6.336 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003329/0.3276, allocations: 257.8 kB / 404.3 MB, free: 6.031 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002231/0.3278, allocations: 138.2 kB / 404.4 MB, free: 5.859 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.35e-05/0.3279, allocations: 29.7 kB / 404.4 MB, free: 5.824 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.992e-05/0.3279, allocations: 4 kB / 404.4 MB, free: 5.82 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.777e-05/0.328, allocations: 38.55 kB / 404.5 MB, free: 5.773 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.328, allocations: 0 / 404.5 MB, free: 5.773 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002382/0.3282, allocations: 81.52 kB / 404.5 MB, free: 5.688 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.814e-05/0.3283, allocations: 77.11 kB / 404.6 MB, free: 5.594 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001279/0.3284, allocations: 141.1 kB / 404.8 MB, free: 5.445 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.521e-05/0.3284, allocations: 25.7 kB / 404.8 MB, free: 5.414 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.035e-05/0.3285, allocations: 88.05 kB / 404.9 MB, free: 5.324 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.002e-05/0.3285, allocations: 3.984 kB / 404.9 MB, free: 5.32 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.552e-05/0.3286, allocations: 21.72 kB / 404.9 MB, free: 5.293 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.3287, allocations: 315 kB / 405.2 MB, free: 4.977 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.058e-05/0.3287, allocations: 11.98 kB / 405.2 MB, free: 4.965 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.843e-05/0.3288, allocations: 31.42 kB / 405.2 MB, free: 4.922 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.252e-05/0.3289, allocations: 51.36 kB / 405.3 MB, free: 4.859 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3289, allocations: 0 / 405.3 MB, free: 4.859 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001281/0.329, allocations: 77.41 kB / 405.4 MB, free: 4.777 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.3291, allocations: 4 kB / 405.4 MB, free: 4.773 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.3291, allocations: 4 kB / 405.4 MB, free: 4.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.3291, allocations: 0 / 405.4 MB, free: 4.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.14e-05/0.3292, allocations: 20.11 kB / 405.4 MB, free: 4.75 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.573e-06/0.3292, allocations: 0 / 405.4 MB, free: 4.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.285e-05/0.3292, allocations: 4 kB / 405.4 MB, free: 4.746 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.11e-06/0.3292, allocations: 3.938 kB / 405.4 MB, free: 4.742 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 9.12e-05/0.3293, allocations: 125.8 kB / 405.5 MB, free: 4.609 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.185e-05/0.3294, allocations: 49.55 kB / 405.6 MB, free: 4.555 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.346e-05/0.3294, allocations: 12.23 kB / 405.6 MB, free: 4.535 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.3295, allocations: 0 / 405.6 MB, free: 4.535 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.3295, allocations: 4 kB / 405.6 MB, free: 4.531 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.3295, allocations: 4 kB / 405.6 MB, free: 4.527 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001736/0.3296, allocations: 173.5 kB / 405.8 MB, free: 4.309 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.3297, allocations: 336 / 405.8 MB, free: 4.309 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.789e-05/0.3297, allocations: 8 kB / 405.8 MB, free: 4.301 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.3297, allocations: 0 / 405.8 MB, free: 4.301 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.386e-06/0.3297, allocations: 4 kB / 405.8 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.3297, allocations: 0 / 405.8 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3297, allocations: 0 / 405.8 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001804/0.3299, allocations: 180.2 kB / 405.9 MB, free: 4.102 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.623e-05/0.33, allocations: 89.09 kB / 406 MB, free: 3.996 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.529e-05/0.33, allocations: 0 / 406 MB, free: 3.996 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.683e-05/0.3301, allocations: 3.938 kB / 406 MB, free: 3.992 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.119e-05/0.3301, allocations: 7.984 kB / 406 MB, free: 3.984 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.176e-06/0.3301, allocations: 0 / 406 MB, free: 3.984 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.395e-05/0.3302, allocations: 103.3 kB / 406.1 MB, free: 3.883 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3302, allocations: 0 / 406.1 MB, free: 3.883 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002256/0.3304, allocations: 8 kB / 406.2 MB, free: 3.875 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.0001001/0.3305, allocations: 99.19 kB / 406.3 MB, free: 3.77 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001463/0.3307, allocations: 39.91 kB / 406.3 MB, free: 3.73 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3307, allocations: 0 / 406.3 MB, free: 3.73 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.18e-05/0.3307, allocations: 4 kB / 406.3 MB, free: 3.727 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003408/0.3311, allocations: 24.27 kB / 406.3 MB, free: 3.703 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003133/0.3314, allocations: 184 kB / 406.5 MB, free: 3.488 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000269/0.3317, allocations: 0.6961 MB / 407.2 MB, free: 2.766 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.846e-05/0.3318, allocations: 11.44 kB / 407.2 MB, free: 2.754 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3318, allocations: 0 / 407.2 MB, free: 2.754 MB / 318.1 MB Notification: Performance of Templates: time 0.00204/0.3338, allocations: 0.6913 MB / 407.9 MB, free: 2.059 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