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.001309/0.001309, allocations: 84.19 kB / 15.75 MB, free: 416 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.001986/0.001986, allocations: 177.1 kB / 16.63 MB, free: 6.887 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.902/1.902, allocations: 205.4 MB / 222.8 MB, free: 5.621 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.1002/0.1002, allocations: 12.6 MB / 283.7 MB, free: 8.684 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.0007745/0.0007746, allocations: 20 kB / 344.5 MB, free: 21.25 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1238, allocations: 50.38 MB / 394.9 MB, free: 2.785 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock): time 0.001308/0.1252, allocations: 0.5518 MB / 395.5 MB, free: 2.23 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004019/0.1256, allocations: 131.6 kB / 395.6 MB, free: 2.102 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.942e-05/0.1257, allocations: 0 / 395.6 MB, free: 2.102 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.964e-05/0.1258, allocations: 3.938 kB / 395.6 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001382/0.126, allocations: 15.92 kB / 395.6 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002408/0.1262, allocations: 31.97 kB / 395.6 MB, free: 2.051 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001082/0.1264, allocations: 31.86 kB / 395.7 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001183/0.1265, allocations: 27.92 kB / 395.7 MB, free: 1.992 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.544e-05/0.1265, allocations: 15.92 kB / 395.7 MB, free: 1.977 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.401e-05/0.1266, allocations: 11.88 kB / 395.7 MB, free: 1.965 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.284e-05/0.1266, allocations: 4 kB / 395.7 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.268e-05/0.1267, allocations: 0 / 395.7 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.825e-05/0.1267, allocations: 15.97 kB / 395.7 MB, free: 1.945 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.359e-05/0.1268, allocations: 37.64 kB / 395.8 MB, free: 1.902 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.775e-05/0.1268, allocations: 31.94 kB / 395.8 MB, free: 1.871 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.1268, allocations: 4 kB / 395.8 MB, free: 1.867 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1269, allocations: 4 kB / 395.8 MB, free: 1.863 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.1269, allocations: 0 / 395.8 MB, free: 1.863 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.0004985/0.1274, allocations: 367.3 kB / 396.2 MB, free: 1.457 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.1274, allocations: 8.031 kB / 396.2 MB, free: 1.449 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.462e-05/0.1275, allocations: 7.906 kB / 396.2 MB, free: 1.441 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002092/0.1277, allocations: 200 kB / 396.4 MB, free: 1.207 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.1277, allocations: 3.953 kB / 396.4 MB, free: 1.203 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.33e-05/0.1277, allocations: 8 kB / 396.4 MB, free: 1.195 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000303/0.128, allocations: 139.3 kB / 396.5 MB, free: 1.047 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.1281, allocations: 0 / 396.5 MB, free: 1.047 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/0.1281, allocations: 0 / 396.5 MB, free: 1.047 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.26e-05/0.1281, allocations: 3.984 kB / 396.5 MB, free: 1.043 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.244e-05/0.1282, allocations: 27.92 kB / 396.6 MB, free: 1.016 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001685/0.1283, allocations: 169.6 kB / 396.7 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001666/0.1285, allocations: 82.66 kB / 396.8 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.997e-05/0.1286, allocations: 40.89 kB / 396.9 MB, free: 0.668 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.483e-05/0.1286, allocations: 3.938 kB / 396.9 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.443e-05/0.1286, allocations: 34.56 kB / 396.9 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 1.252e-06/0.1287, allocations: 3.938 kB / 396.9 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.000249/0.1289, allocations: 93.73 kB / 397 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.357e-05/0.129, allocations: 71.38 kB / 397.1 MB, free: 448 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001454/0.1291, allocations: 137.1 kB / 397.2 MB, free: 300 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.651e-05/0.1292, allocations: 25.7 kB / 397.2 MB, free: 268 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.419e-05/0.1292, allocations: 92.14 kB / 397.3 MB, free: 172 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.059e-05/0.1292, allocations: 7.984 kB / 397.3 MB, free: 164 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.597e-06/0.1293, allocations: 0 / 397.3 MB, free: 164 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002105/0.1295, allocations: 318.8 kB / 397.6 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.843e-05/0.1295, allocations: 15.86 kB / 397.6 MB, free: 15.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.266e-05/0.1296, allocations: 62.88 kB / 397.7 MB, free: 15.74 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.04e-05/0.1296, allocations: 19.98 kB / 397.7 MB, free: 15.72 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1296, allocations: 0 / 397.7 MB, free: 15.72 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001527/0.1298, allocations: 97.36 kB / 397.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/0.1298, allocations: 4 kB / 397.8 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.1298, allocations: 4 kB / 397.8 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.1299, allocations: 3.984 kB / 397.8 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.256e-05/0.1299, allocations: 20.19 kB / 397.9 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.13, allocations: 4 kB / 397.9 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.712e-05/0.13, allocations: 11.94 kB / 397.9 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.738e-06/0.13, allocations: 4.312 kB / 397.9 MB, free: 15.57 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,unitDelay1.u,$CLKPRE.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001175/0.1302, allocations: 129.6 kB / 398 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001143/0.1303, allocations: 93.38 kB / 398.1 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.731e-05/0.1303, allocations: 16.7 kB / 398.1 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.1303, allocations: 4 kB / 398.1 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.1303, allocations: 0 / 398.1 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.1304, allocations: 4 kB / 398.1 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000127/0.1305, allocations: 165.7 kB / 398.3 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.1305, allocations: 0 / 398.3 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.524e-05/0.1306, allocations: 15.98 kB / 398.3 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.1306, allocations: 7.891 kB / 398.3 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/0.1306, allocations: 4 kB / 398.3 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.1306, allocations: 0 / 398.3 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1306, allocations: 0 / 398.3 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000137/0.1308, allocations: 113 kB / 398.4 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.503e-05/0.1308, allocations: 96.94 kB / 398.5 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.039e-05/0.1309, allocations: 7.953 kB / 398.5 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.439e-05/0.1309, allocations: 0 / 398.5 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.308e-06/0.1309, allocations: 0 / 398.5 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-06/0.1309, allocations: 4 kB / 398.5 MB, free: 14.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.393e-05/0.131, allocations: 107.2 kB / 398.6 MB, free: 14.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.131, allocations: 0 / 398.6 MB, free: 14.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002242/0.1312, allocations: 8 kB / 398.6 MB, free: 14.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001228/0.1314, allocations: 103.2 kB / 398.7 MB, free: 14.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001298/0.1315, allocations: 47.91 kB / 398.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1315, allocations: 192 / 398.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.91e-07/0.1315, allocations: 0 / 398.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003132/0.1318, allocations: 59.81 kB / 398.8 MB, free: 14.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003453/0.1322, allocations: 183.7 kB / 399 MB, free: 14.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003398/0.1325, allocations: 0.6926 MB / 399.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.128e-05/0.1326, allocations: 8.656 kB / 399.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.74e-05/0.1326, allocations: 11.44 kB / 399.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of SimCode: time 2.093e-06/0.1326, allocations: 0 / 399.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of Templates: time 0.002983/0.1356, allocations: 0.6258 MB / 400.4 MB, free: 12.91 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