Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.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.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00256/0.00256, allocations: 110.7 kB / 17.16 MB, free: 6.324 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.003571/0.003571, allocations: 198.9 kB / 18.08 MB, free: 5.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 2.497/2.497, allocations: 222.9 MB / 241.7 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001767/0.001767, allocations: 46.02 kB / 300.6 MB, free: 6.289 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1934/0.1952, allocations: 49.45 MB / 350.1 MB, free: 4.828 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.00625/0.2017, allocations: 0.9014 MB / 351 MB, free: 3.922 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006548/0.2024, allocations: 123.6 kB / 351.1 MB, free: 3.801 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001549/0.2026, allocations: 0 / 351.1 MB, free: 3.801 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001883/0.2028, allocations: 3.938 kB / 351.1 MB, free: 3.797 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002338/0.2031, allocations: 15.97 kB / 351.1 MB, free: 3.781 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004064/0.2035, allocations: 31.91 kB / 351.1 MB, free: 3.75 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001819/0.2037, allocations: 47.84 kB / 351.2 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002544/0.204, allocations: 19.98 kB / 351.2 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.765e-05/0.2041, allocations: 19.88 kB / 351.2 MB, free: 3.664 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001443/0.2042, allocations: 19.92 kB / 351.2 MB, free: 3.645 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.521e-05/0.2043, allocations: 0 / 351.2 MB, free: 3.645 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.383e-05/0.2043, allocations: 7.938 kB / 351.2 MB, free: 3.637 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000115/0.2044, allocations: 15.92 kB / 351.3 MB, free: 3.621 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.026e-05/0.2045, allocations: 27.81 kB / 351.3 MB, free: 3.594 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002016/0.2048, allocations: 47.86 kB / 351.3 MB, free: 3.547 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.918e-06/0.2048, allocations: 0 / 351.3 MB, free: 3.547 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.2048, allocations: 0 / 351.3 MB, free: 3.547 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.035e-05/0.2048, allocations: 0 / 351.3 MB, free: 3.547 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.001179/0.206, allocations: 371.5 kB / 351.7 MB, free: 3.133 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.644e-05/0.2061, allocations: 12.03 kB / 351.7 MB, free: 3.121 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001059/0.2062, allocations: 12.75 kB / 351.7 MB, free: 3.109 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004447/0.2067, allocations: 194.9 kB / 351.9 MB, free: 2.883 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.021e-05/0.2067, allocations: 384 / 351.9 MB, free: 2.883 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.875e-05/0.2067, allocations: 8.375 kB / 351.9 MB, free: 2.875 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005346/0.2073, allocations: 151.7 kB / 352.1 MB, free: 2.715 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.939e-05/0.2073, allocations: 192 / 352.1 MB, free: 2.715 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.489e-05/0.2074, allocations: 7.938 kB / 352.1 MB, free: 2.707 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.2074, allocations: 0 / 352.1 MB, free: 2.707 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.796e-05/0.2075, allocations: 19.98 kB / 352.1 MB, free: 2.688 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003432/0.2078, allocations: 169.6 kB / 352.3 MB, free: 2.473 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003011/0.2081, allocations: 86.64 kB / 352.3 MB, free: 2.379 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001328/0.2083, allocations: 36.89 kB / 352.4 MB, free: 2.34 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.264e-05/0.2083, allocations: 0 / 352.4 MB, free: 2.34 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.412e-05/0.2084, allocations: 42.55 kB / 352.4 MB, free: 2.289 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 2.314e-06/0.2084, allocations: 0 / 352.4 MB, free: 2.289 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.000418/0.2089, allocations: 97.47 kB / 352.5 MB, free: 2.188 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001424/0.209, allocations: 63.39 kB / 352.6 MB, free: 2.113 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002722/0.2093, allocations: 137.8 kB / 352.7 MB, free: 1.969 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.304e-05/0.2093, allocations: 29.7 kB / 352.7 MB, free: 1.934 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.6e-05/0.2094, allocations: 84.12 kB / 352.8 MB, free: 1.848 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.209e-05/0.2095, allocations: 11.91 kB / 352.8 MB, free: 1.836 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001002/0.2096, allocations: 25.66 kB / 352.9 MB, free: 1.805 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0003157/0.2099, allocations: 318.8 kB / 353.2 MB, free: 1.484 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.635e-05/0.21, allocations: 12 kB / 353.2 MB, free: 1.473 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000126/0.2101, allocations: 66.89 kB / 353.3 MB, free: 1.383 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001645/0.2103, allocations: 74.8 kB / 353.3 MB, free: 1.285 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.2103, allocations: 0 / 353.3 MB, free: 1.285 MB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002598/0.2106, allocations: 93.41 kB / 353.4 MB, free: 1.188 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.673e-05/0.2107, allocations: 8.188 kB / 353.4 MB, free: 1.18 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.866e-05/0.2107, allocations: 8 kB / 353.4 MB, free: 1.172 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.805e-05/0.2107, allocations: 0 / 353.4 MB, free: 1.172 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001628/0.2109, allocations: 23.92 kB / 353.5 MB, free: 1.148 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.687e-05/0.2109, allocations: 0 / 353.5 MB, free: 1.148 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.084e-05/0.211, allocations: 7.938 kB / 353.5 MB, free: 1.141 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.519e-05/0.211, allocations: 12 kB / 353.5 MB, free: 1.129 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 9 (sum.y,sum.u[2],sum.u[1],const.y,unitDelay1.y,$CLKPRE.unitDelay1.u,unitDelay1.u,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.0002443/0.2113, allocations: 121.8 kB / 353.6 MB, free: 1 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001965/0.2115, allocations: 93.45 kB / 353.7 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.128e-05/0.2116, allocations: 12.72 kB / 353.7 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.458e-05/0.2116, allocations: 4 kB / 353.7 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.777e-06/0.2116, allocations: 0 / 353.7 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.938e-06/0.2117, allocations: 3.984 kB / 353.7 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002201/0.2119, allocations: 165.7 kB / 353.9 MB, free: 0.668 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.2119, allocations: 0 / 353.9 MB, free: 0.668 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001787/0.2121, allocations: 15.98 kB / 353.9 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-05/0.2121, allocations: 3.938 kB / 353.9 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.517e-05/0.2122, allocations: 0 / 353.9 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.2122, allocations: 4 kB / 353.9 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.2122, allocations: 0 / 353.9 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002688/0.2125, allocations: 117.3 kB / 354 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001507/0.2126, allocations: 93 kB / 354.1 MB, free: 412 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.686e-05/0.2127, allocations: 7.938 kB / 354.1 MB, free: 404 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.377e-05/0.2127, allocations: 4 kB / 354.1 MB, free: 400 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.019e-05/0.2128, allocations: 0 / 354.1 MB, free: 400 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.093e-06/0.2128, allocations: 3.938 kB / 354.1 MB, free: 396 kB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001444/0.2129, allocations: 118.1 kB / 354.2 MB, free: 280 kB / 286.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2129, allocations: 4 kB / 354.2 MB, free: 276 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003622/0.2133, allocations: 4 kB / 354.2 MB, free: 272 kB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (assignClock1.u,assignClock1.y,unitDelay1.u,unitDelay1.y,const.y,sum.u[1],sum.u[2],sum.y) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.0001968/0.2135, allocations: 107.2 kB / 354.3 MB, free: 156 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002158/0.2137, allocations: 47.98 kB / 354.4 MB, free: 108 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.2138, allocations: 0 / 354.4 MB, free: 108 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 2.033e-06/0.2138, allocations: 0.5 kB / 354.4 MB, free: 108 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005537/0.2143, allocations: 65.3 kB / 354.5 MB, free: 44 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007094/0.2151, allocations: 225.2 kB / 354.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005314/0.2156, allocations: 0.6965 MB / 355.4 MB, free: 15.06 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.796e-05/0.2157, allocations: 11.38 kB / 355.4 MB, free: 15.05 MB / 302.1 MB Notification: Performance of SimCode: time 1.392e-06/0.2157, allocations: 4 kB / 355.4 MB, free: 15.05 MB / 302.1 MB Notification: Performance of Templates: time 0.01072/0.2264, allocations: 0.8542 MB / 356.2 MB, free: 14.19 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches