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/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 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 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008576/0.0008576, allocations: 102.6 kB / 16.07 MB, free: 32 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000966/0.0009661, allocations: 181.2 kB / 16.96 MB, free: 6.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.228/1.228, allocations: 205.4 MB / 223.1 MB, free: 5.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06296/0.06296, allocations: 12.6 MB / 284 MB, free: 8.594 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006323/0.0006323, allocations: 20.84 kB / 345.2 MB, free: 20.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07015/0.07079, allocations: 50.39 MB / 395.6 MB, free: 2.422 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock): time 0.0009416/0.07176, allocations: 0.5673 MB / 396.1 MB, free: 1.852 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000272/0.07205, allocations: 119.7 kB / 396.2 MB, free: 1.734 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.162e-05/0.07212, allocations: 0 / 396.2 MB, free: 1.734 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.249e-05/0.07219, allocations: 3.938 kB / 396.2 MB, free: 1.73 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.674e-05/0.07229, allocations: 8 kB / 396.2 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001627/0.07246, allocations: 39.83 kB / 396.3 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 7.001e-05/0.07254, allocations: 39.92 kB / 396.3 MB, free: 1.645 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.63e-05/0.07263, allocations: 19.98 kB / 396.3 MB, free: 1.625 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.096e-05/0.07266, allocations: 11.88 kB / 396.4 MB, free: 1.613 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.106e-05/0.07273, allocations: 23.91 kB / 396.4 MB, free: 1.59 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.227e-05/0.07274, allocations: 0 / 396.4 MB, free: 1.59 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.195e-06/0.07276, allocations: 0 / 396.4 MB, free: 1.59 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.804e-05/0.0728, allocations: 15.94 kB / 396.4 MB, free: 1.574 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.258e-05/0.07285, allocations: 57.44 kB / 396.5 MB, free: 1.512 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 6.983e-05/0.07293, allocations: 51.73 kB / 396.5 MB, free: 1.461 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.07294, allocations: 4 kB / 396.5 MB, free: 1.457 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.07294, allocations: 0 / 396.5 MB, free: 1.457 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.645e-06/0.07295, allocations: 0 / 396.5 MB, free: 1.457 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.000338/0.07329, allocations: 363.4 kB / 396.9 MB, free: 1.051 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.708e-05/0.07332, allocations: 8.031 kB / 396.9 MB, free: 1.043 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.61e-05/0.07335, allocations: 12.84 kB / 396.9 MB, free: 1.031 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001467/0.07351, allocations: 188.2 kB / 397.1 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.02e-05/0.07353, allocations: 12.38 kB / 397.1 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.189e-05/0.07354, allocations: 4.375 kB / 397.1 MB, free: 0.793 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002265/0.07377, allocations: 139.8 kB / 397.2 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.014e-06/0.07379, allocations: 192 / 397.2 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.055e-06/0.0738, allocations: 7.875 kB / 397.2 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.07382, allocations: 4 kB / 397.2 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.265e-05/0.07386, allocations: 23.97 kB / 397.3 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001189/0.07399, allocations: 181.6 kB / 397.4 MB, free: 392 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001186/0.07411, allocations: 74.69 kB / 397.5 MB, free: 308 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.841e-05/0.07418, allocations: 44.84 kB / 397.5 MB, free: 260 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.624e-06/0.07419, allocations: 0 / 397.5 MB, free: 260 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.96e-05/0.07422, allocations: 30.56 kB / 397.6 MB, free: 220 kB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 8.02e-07/0.07423, allocations: 4 kB / 397.6 MB, free: 216 kB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0001751/0.07441, allocations: 109.6 kB / 397.7 MB, free: 100 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.599e-05/0.07445, allocations: 55.41 kB / 397.7 MB, free: 32 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001089/0.07457, allocations: 148.8 kB / 397.9 MB, free: 15.88 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.215e-05/0.07458, allocations: 29.7 kB / 397.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.093e-05/0.07462, allocations: 84.14 kB / 398 MB, free: 15.76 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.089e-05/0.07464, allocations: 0 / 398 MB, free: 15.76 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.037e-05/0.07467, allocations: 21.7 kB / 398 MB, free: 15.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.952e-05/0.07477, allocations: 322.8 kB / 398.3 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.73e-05/0.07479, allocations: 7.984 kB / 398.3 MB, free: 15.4 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.384e-05/0.07484, allocations: 66.8 kB / 398.4 MB, free: 15.31 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.872e-05/0.07491, allocations: 70.75 kB / 398.5 MB, free: 15.21 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.07492, allocations: 4 kB / 398.5 MB, free: 15.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001105/0.07504, allocations: 97.39 kB / 398.6 MB, free: 15.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.07506, allocations: 11.94 kB / 398.6 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.306e-06/0.07507, allocations: 0 / 398.6 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.998e-06/0.07508, allocations: 4 kB / 398.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.338e-05/0.07515, allocations: 12 kB / 398.6 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.07516, allocations: 7.938 kB / 398.6 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.863e-05/0.0752, allocations: 0 / 398.6 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.242e-06/0.07521, allocations: 4 kB / 398.6 MB, free: 15.07 MB / 302.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 8.142e-05/0.07529, allocations: 134.1 kB / 398.7 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.44e-05/0.07538, allocations: 81.47 kB / 398.8 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.961e-05/0.07542, allocations: 16.7 kB / 398.8 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.07543, allocations: 0 / 398.8 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.07544, allocations: 0 / 398.8 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.07544, allocations: 3.938 kB / 398.8 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.082e-05/0.07554, allocations: 177.5 kB / 399 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.07555, allocations: 0 / 399 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.887e-05/0.07561, allocations: 16 kB / 399 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.07562, allocations: 7.938 kB / 399 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.07e-06/0.07563, allocations: 0 / 399 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.07564, allocations: 0 / 399 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.07564, allocations: 3.984 kB / 399 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001169/0.07576, allocations: 109 kB / 399.2 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.154e-05/0.07582, allocations: 100.9 kB / 399.3 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.36e-05/0.07584, allocations: 3.938 kB / 399.3 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.983e-05/0.07587, allocations: 0 / 399.3 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.944e-06/0.07588, allocations: 4 kB / 399.3 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.516e-06/0.0759, allocations: 11.98 kB / 399.3 MB, free: 14.31 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.481e-05/0.07595, allocations: 107.2 kB / 399.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.07596, allocations: 0 / 399.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001851/0.07615, allocations: 12 kB / 399.4 MB, free: 14.2 MB / 302.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 6.914e-05/0.07622, allocations: 91.25 kB / 399.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 9.686e-05/0.07633, allocations: 56.16 kB / 399.5 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.07634, allocations: 4 kB / 399.5 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.2e-07/0.07634, allocations: 0 / 399.5 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002384/0.07659, allocations: 44.14 kB / 399.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002388/0.07683, allocations: 200 kB / 399.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002064/0.07705, allocations: 0.6965 MB / 400.5 MB, free: 13.04 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.945e-05/0.07708, allocations: 8.656 kB / 400.5 MB, free: 13.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.818e-05/0.0771, allocations: 11.44 kB / 400.5 MB, free: 13.02 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.07711, allocations: 0 / 400.5 MB, free: 13.02 MB / 302.1 MB Notification: Performance of Templates: time 0.002153/0.07927, allocations: 0.6345 MB / 401.1 MB, free: 12.39 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock_res.mat","/var/lib/jenkins/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