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.00145/0.00145, allocations: 106.2 kB / 16.31 MB, free: 6.391 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.001631/0.001631, allocations: 189.8 kB / 17.24 MB, free: 5.922 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.751/1.751, allocations: 205.1 MB / 223.1 MB, free: 12.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09016/0.09016, allocations: 12.6 MB / 283.1 MB, free: 15.48 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.0021/0.0021, allocations: 99.84 kB / 343.5 MB, free: 2.945 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3412/0.3433, allocations: 49.38 MB / 392.9 MB, free: 49.21 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock): time 0.00252/0.3459, allocations: 0.8466 MB / 393.7 MB, free: 48.7 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003476/0.3462, allocations: 117.9 kB / 393.8 MB, free: 48.62 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.115e-05/0.3464, allocations: 6.406 kB / 393.8 MB, free: 48.62 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001062/0.3465, allocations: 9.203 kB / 393.9 MB, free: 48.61 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001301/0.3466, allocations: 12.59 kB / 393.9 MB, free: 48.61 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002128/0.3468, allocations: 33.02 kB / 393.9 MB, free: 48.59 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001118/0.3469, allocations: 43 kB / 393.9 MB, free: 48.57 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001339/0.3471, allocations: 26.39 kB / 394 MB, free: 48.56 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.904e-05/0.3471, allocations: 22.91 kB / 394 MB, free: 48.54 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.266e-05/0.3472, allocations: 18.8 kB / 394 MB, free: 48.54 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.729e-05/0.3473, allocations: 3.25 kB / 394 MB, free: 48.54 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.505e-05/0.3473, allocations: 3.781 kB / 394 MB, free: 48.54 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.337e-05/0.3473, allocations: 17.11 kB / 394 MB, free: 48.53 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.195e-05/0.3474, allocations: 31.05 kB / 394.1 MB, free: 48.5 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001249/0.3475, allocations: 56.56 kB / 394.1 MB, free: 48.48 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.3475, allocations: 0.5625 kB / 394.1 MB, free: 48.48 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3475, allocations: 0 / 394.1 MB, free: 48.48 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.11e-05/0.3476, allocations: 0 / 394.1 MB, free: 48.48 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004662/0.348, allocations: 389.7 kB / 394.5 MB, free: 48.08 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.3481, allocations: 9.688 kB / 394.5 MB, free: 48.08 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.084e-05/0.3481, allocations: 14.12 kB / 394.5 MB, free: 48.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001668/0.3483, allocations: 195.2 kB / 394.7 MB, free: 47.86 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.603e-05/0.3483, allocations: 6.781 kB / 394.7 MB, free: 47.86 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.916e-05/0.3483, allocations: 4.141 kB / 394.7 MB, free: 47.86 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003037/0.3486, allocations: 143.3 kB / 394.9 MB, free: 47.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.3487, allocations: 192 / 394.9 MB, free: 47.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.3487, allocations: 9.734 kB / 394.9 MB, free: 47.76 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.683e-06/0.3487, allocations: 1.375 kB / 394.9 MB, free: 47.76 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.253e-05/0.3488, allocations: 23.23 kB / 394.9 MB, free: 47.75 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001395/0.3489, allocations: 173 kB / 395.1 MB, free: 47.55 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001766/0.3491, allocations: 70.61 kB / 395.1 MB, free: 47.52 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.256e-05/0.3492, allocations: 47.91 kB / 395.2 MB, free: 47.49 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.421e-05/0.3492, allocations: 1.188 kB / 395.2 MB, free: 47.49 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.2e-05/0.3492, allocations: 36.28 kB / 395.2 MB, free: 47.45 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 1.083e-06/0.3492, allocations: 0.9688 kB / 395.2 MB, free: 47.45 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002528/0.3495, allocations: 105.3 kB / 395.3 MB, free: 47.39 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.998e-05/0.3495, allocations: 54.53 kB / 395.4 MB, free: 47.32 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000146/0.3497, allocations: 142 kB / 395.5 MB, free: 47.21 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.128e-05/0.3497, allocations: 33.64 kB / 395.5 MB, free: 47.17 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.244e-05/0.3498, allocations: 87.44 kB / 395.6 MB, free: 47.09 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.111e-05/0.3498, allocations: 6.594 kB / 395.6 MB, free: 47.08 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.478e-05/0.3498, allocations: 27.69 kB / 395.7 MB, free: 47.06 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.986e-05/0.3499, allocations: 314.9 kB / 396 MB, free: 46.75 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.642e-05/0.35, allocations: 11.39 kB / 396 MB, free: 46.74 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.692e-05/0.35, allocations: 63.12 kB / 396 MB, free: 46.67 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.664e-05/0.3501, allocations: 76.22 kB / 396.1 MB, free: 46.59 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.3501, allocations: 1.25 kB / 396.1 MB, free: 46.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001392/0.3502, allocations: 90.11 kB / 396.2 MB, free: 46.53 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.3503, allocations: 9.797 kB / 396.2 MB, free: 46.53 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.3503, allocations: 1.688 kB / 396.2 MB, free: 46.53 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.953e-05/0.3503, allocations: 6.656 kB / 396.2 MB, free: 46.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.171e-05/0.3504, allocations: 19.41 kB / 396.2 MB, free: 46.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.976e-06/0.3504, allocations: 3.25 kB / 396.3 MB, free: 46.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.638e-05/0.3505, allocations: 6.25 kB / 396.3 MB, free: 46.52 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.917e-06/0.3505, allocations: 4.125 kB / 396.3 MB, free: 46.52 MB / 318.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.281e-05/0.3506, allocations: 125.9 kB / 396.4 MB, free: 46.39 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.821e-05/0.3507, allocations: 92.8 kB / 396.5 MB, free: 46.33 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.762e-05/0.3507, allocations: 13.02 kB / 396.5 MB, free: 46.33 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.3507, allocations: 5.031 kB / 396.5 MB, free: 46.32 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.3507, allocations: 0 / 396.5 MB, free: 46.32 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.3507, allocations: 0.6094 kB / 396.5 MB, free: 46.32 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.315e-05/0.3508, allocations: 170.6 kB / 396.7 MB, free: 46.13 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.063e-06/0.3508, allocations: 0.6094 kB / 396.7 MB, free: 46.13 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.202e-05/0.3509, allocations: 14.12 kB / 396.7 MB, free: 46.13 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.3509, allocations: 3.938 kB / 396.7 MB, free: 46.12 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.538e-06/0.3509, allocations: 11.5 kB / 396.7 MB, free: 46.12 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.3509, allocations: 0 / 396.7 MB, free: 46.12 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.3509, allocations: 0 / 396.7 MB, free: 46.12 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001108/0.3511, allocations: 116.7 kB / 396.8 MB, free: 46.02 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.252e-05/0.3511, allocations: 92.66 kB / 396.9 MB, free: 45.93 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.942e-05/0.3511, allocations: 7.938 kB / 396.9 MB, free: 45.92 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.216e-05/0.3512, allocations: 0.5625 kB / 396.9 MB, free: 45.92 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.23e-06/0.3512, allocations: 0.6094 kB / 396.9 MB, free: 45.92 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.46e-06/0.3512, allocations: 3.812 kB / 396.9 MB, free: 45.92 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.058e-05/0.3513, allocations: 106.6 kB / 397 MB, free: 45.84 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3513, allocations: 0 / 397 MB, free: 45.84 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002021/0.3515, allocations: 19.38 kB / 397 MB, free: 45.82 MB / 318.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 9.238e-05/0.3516, allocations: 98.47 kB / 397.1 MB, free: 45.73 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001619/0.3518, allocations: 62.92 kB / 397.2 MB, free: 45.7 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.3518, allocations: 0 / 397.2 MB, free: 45.7 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.71e-07/0.3518, allocations: 1.438 kB / 397.2 MB, free: 45.7 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003122/0.3521, allocations: 45.2 kB / 397.2 MB, free: 45.69 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002971/0.3524, allocations: 175.2 kB / 397.4 MB, free: 45.55 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002085/0.3526, allocations: 0.7022 MB / 398.1 MB, free: 44.84 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.671e-05/0.3526, allocations: 5.062 kB / 398.1 MB, free: 44.84 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.922e-05/0.3527, allocations: 15.38 kB / 398.1 MB, free: 44.83 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3527, allocations: 0 / 398.1 MB, free: 44.83 MB / 318.1 MB Notification: Performance of Templates: time 0.003963/0.3567, allocations: 0.6876 MB / 398.8 MB, free: 44.55 MB / 318.1 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches