Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sum.y|unitDelay1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sum.y|unitDelay1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008552/0.0008552, allocations: 173.5 kB / 16.76 MB, free: 4.91 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.22/1.22, allocations: 205 MB / 222.5 MB, free: 9.141 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007259/0.0007259, allocations: 93.66 kB / 270.5 MB, free: 8.66 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06602/0.06602, allocations: 12.56 MB / 331 MB, free: 12.06 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003317/0.0003317, allocations: 12 kB / 391.7 MB, free: 66.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06882/0.06917, allocations: 49.97 MB / 441.7 MB, free: 16.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock): time 0.0009833/0.0702, allocations: 0.5708 MB / 442.3 MB, free: 15.81 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002941/0.07052, allocations: 127.6 kB / 442.4 MB, free: 15.69 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.752e-05/0.07061, allocations: 0 / 442.4 MB, free: 15.69 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.503e-05/0.07072, allocations: 3.938 kB / 442.4 MB, free: 15.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001021/0.07083, allocations: 4 kB / 442.4 MB, free: 15.68 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001925/0.07103, allocations: 51.88 kB / 442.4 MB, free: 15.63 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.259e-05/0.07112, allocations: 31.92 kB / 442.5 MB, free: 15.6 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.878e-05/0.07123, allocations: 19.98 kB / 442.5 MB, free: 15.58 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.447e-05/0.07126, allocations: 15.86 kB / 442.5 MB, free: 15.56 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.974e-05/0.07133, allocations: 19.92 kB / 442.5 MB, free: 15.54 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.517e-05/0.07135, allocations: 0 / 442.5 MB, free: 15.54 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.006e-05/0.07136, allocations: 0 / 442.5 MB, free: 15.54 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.823e-05/0.07141, allocations: 15.94 kB / 442.5 MB, free: 15.53 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.317e-05/0.07144, allocations: 31.73 kB / 442.6 MB, free: 15.5 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.92e-05/0.07151, allocations: 35.92 kB / 442.6 MB, free: 15.46 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.07152, allocations: 4 kB / 442.6 MB, free: 15.46 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.472e-06/0.07152, allocations: 0 / 442.6 MB, free: 15.46 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.256e-06/0.07153, allocations: 0 / 442.6 MB, free: 15.46 MB / 298.7 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.0003196/0.07186, allocations: 363.4 kB / 443 MB, free: 15.05 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.167e-05/0.0719, allocations: 12.03 kB / 443 MB, free: 15.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.169e-05/0.07193, allocations: 8.844 kB / 443 MB, free: 15.03 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001367/0.07208, allocations: 200.1 kB / 443.2 MB, free: 14.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.149e-05/0.0721, allocations: 384 / 443.2 MB, free: 14.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.254e-05/0.07212, allocations: 8.375 kB / 443.2 MB, free: 14.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002307/0.07235, allocations: 139.7 kB / 443.3 MB, free: 14.64 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.07237, allocations: 192 / 443.3 MB, free: 14.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.769e-06/0.07239, allocations: 3.938 kB / 443.3 MB, free: 14.64 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.0724, allocations: 0 / 443.3 MB, free: 14.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.07e-05/0.07244, allocations: 27.98 kB / 443.4 MB, free: 14.61 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.913e-05/0.07255, allocations: 181.6 kB / 443.5 MB, free: 14.38 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000116/0.07267, allocations: 74.64 kB / 443.6 MB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.288e-05/0.07273, allocations: 44.88 kB / 443.7 MB, free: 14.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.106e-05/0.07275, allocations: 4 kB / 443.7 MB, free: 14.25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.455e-05/0.07277, allocations: 34.56 kB / 443.7 MB, free: 14.21 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 1.212e-06/0.07278, allocations: 0 / 443.7 MB, free: 14.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001663/0.07295, allocations: 101.5 kB / 443.8 MB, free: 14.1 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.402e-05/0.07299, allocations: 63.34 kB / 443.8 MB, free: 14.03 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.209e-05/0.07308, allocations: 144.2 kB / 444 MB, free: 13.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.933e-06/0.07309, allocations: 25.7 kB / 444 MB, free: 13.85 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.314e-05/0.07312, allocations: 92.08 kB / 444.1 MB, free: 13.75 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.393e-05/0.07314, allocations: 4 kB / 444.1 MB, free: 13.75 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.085e-05/0.07317, allocations: 21.7 kB / 444.1 MB, free: 13.72 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.398e-05/0.07322, allocations: 314.8 kB / 444.4 MB, free: 13.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.802e-05/0.07324, allocations: 15.98 kB / 444.5 MB, free: 13.39 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.905e-05/0.07327, allocations: 50.88 kB / 444.5 MB, free: 13.32 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.229e-05/0.07333, allocations: 78.73 kB / 444.6 MB, free: 13.21 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.07334, allocations: 0 / 444.6 MB, free: 13.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001021/0.07345, allocations: 97.41 kB / 444.7 MB, free: 13.11 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.07347, allocations: 7.938 kB / 444.7 MB, free: 13.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.07348, allocations: 4 kB / 444.7 MB, free: 13.1 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.07349, allocations: 3.984 kB / 444.7 MB, free: 13.1 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.789e-05/0.07357, allocations: 16 kB / 444.7 MB, free: 13.08 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.07358, allocations: 0 / 444.7 MB, free: 13.08 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.175e-05/0.07362, allocations: 4.25 kB / 444.7 MB, free: 13.08 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-06/0.07363, allocations: 12 kB / 444.7 MB, free: 13.07 MB / 298.7 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 6.629e-05/0.0737, allocations: 126.6 kB / 444.8 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.571e-05/0.07378, allocations: 89.98 kB / 444.9 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.038e-05/0.07382, allocations: 12.7 kB / 444.9 MB, free: 12.83 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.07383, allocations: 0 / 444.9 MB, free: 12.83 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.07384, allocations: 4 kB / 444.9 MB, free: 12.82 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.07384, allocations: 192 / 444.9 MB, free: 12.82 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.245e-05/0.07391, allocations: 169.6 kB / 445.1 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-06/0.07392, allocations: 7.938 kB / 445.1 MB, free: 12.6 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.237e-05/0.07399, allocations: 19.92 kB / 445.1 MB, free: 12.58 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.07399, allocations: 3.938 kB / 445.1 MB, free: 12.58 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.07401, allocations: 0 / 445.1 MB, free: 12.58 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.07401, allocations: 4 kB / 445.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.07402, allocations: 0 / 445.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.682e-05/0.07412, allocations: 109.1 kB / 445.3 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.343e-05/0.07418, allocations: 104.9 kB / 445.4 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.682e-05/0.0742, allocations: 7.938 kB / 445.4 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.264e-05/0.07423, allocations: 8 kB / 445.4 MB, free: 12.31 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.735e-06/0.07424, allocations: 0 / 445.4 MB, free: 12.31 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.887e-06/0.07425, allocations: 0 / 445.4 MB, free: 12.31 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.33e-05/0.0743, allocations: 113.9 kB / 445.5 MB, free: 12.2 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.0743, allocations: 0 / 445.5 MB, free: 12.2 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001918/0.0745, allocations: 4 kB / 445.5 MB, free: 12.2 MB / 298.7 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 6.514e-05/0.07457, allocations: 107.1 kB / 445.6 MB, free: 12.08 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.942e-05/0.07468, allocations: 47.92 kB / 445.6 MB, free: 12.04 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.07469, allocations: 0 / 445.6 MB, free: 12.04 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.01e-07/0.07469, allocations: 0 / 445.6 MB, free: 12.04 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002628/0.07496, allocations: 51.94 kB / 445.7 MB, free: 11.98 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002604/0.07523, allocations: 225.4 kB / 445.9 MB, free: 11.73 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001093/0.07535, allocations: 0.6926 MB / 446.6 MB, free: 11.01 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.189e-05/0.07538, allocations: 11.44 kB / 446.6 MB, free: 11 MB / 298.7 MB Notification: Performance of SimCode: time 3.4e-07/0.07539, allocations: 0 / 446.6 MB, free: 11 MB / 298.7 MB Notification: Performance of Templates: time 0.001879/0.07727, allocations: 0.8552 MB / 447.5 MB, free: 10.14 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches