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.001831/0.001831, allocations: 111 kB / 16.45 MB, free: 6.441 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.002404/0.002404, allocations: 186.9 kB / 17.39 MB, free: 5.668 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.778/1.778, allocations: 205.1 MB / 223.3 MB, free: 12.22 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.08683/0.08683, allocations: 12.58 MB / 283.2 MB, free: 15.4 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.00182/0.00182, allocations: 85.97 kB / 394.2 MB, free: 45.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1137, allocations: 49.41 MB / 443.6 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock): time 0.002144/0.1159, allocations: 0.8364 MB / 444.4 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003918/0.1163, allocations: 123.6 kB / 444.5 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.817e-05/0.1164, allocations: 0 / 444.5 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001163/0.1165, allocations: 15.88 kB / 444.5 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001307/0.1166, allocations: 3.938 kB / 444.5 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002093/0.1169, allocations: 47.89 kB / 444.6 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001228/0.117, allocations: 43.84 kB / 444.6 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001273/0.1171, allocations: 19.92 kB / 444.6 MB, free: 15.51 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.644e-05/0.1172, allocations: 19.92 kB / 444.7 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.325e-05/0.1173, allocations: 27.86 kB / 444.7 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.307e-05/0.1173, allocations: 4 kB / 444.7 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.263e-05/0.1173, allocations: 4 kB / 444.7 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.286e-05/0.1174, allocations: 19.97 kB / 444.7 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.076e-05/0.1174, allocations: 27.75 kB / 444.7 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001292/0.1176, allocations: 59.73 kB / 444.8 MB, free: 15.35 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1176, allocations: 0 / 444.8 MB, free: 15.35 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1176, allocations: 0 / 444.8 MB, free: 15.35 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.651e-06/0.1176, allocations: 0 / 444.8 MB, free: 15.35 MB / 334.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.0005426/0.1181, allocations: 379.1 kB / 445.2 MB, free: 14.93 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/0.1182, allocations: 12.03 kB / 445.2 MB, free: 14.92 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.213e-05/0.1182, allocations: 16.75 kB / 445.2 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002635/0.1185, allocations: 192.2 kB / 445.4 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.229e-05/0.1185, allocations: 4.375 kB / 445.4 MB, free: 14.67 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.755e-05/0.1186, allocations: 8.375 kB / 445.4 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003356/0.1189, allocations: 151.7 kB / 445.6 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.1189, allocations: 192 / 445.6 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.487e-05/0.1189, allocations: 3.938 kB / 445.6 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.1189, allocations: 0 / 445.6 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.053e-05/0.119, allocations: 23.98 kB / 445.6 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002115/0.1192, allocations: 169.6 kB / 445.7 MB, free: 14.26 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001741/0.1194, allocations: 82.58 kB / 445.8 MB, free: 14.17 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.628e-05/0.1195, allocations: 48.88 kB / 445.9 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.014e-05/0.1195, allocations: 0 / 445.9 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.855e-05/0.1196, allocations: 34.56 kB / 445.9 MB, free: 14.08 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.303e-06/0.1196, allocations: 0 / 445.9 MB, free: 14.08 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.000254/0.1198, allocations: 105.7 kB / 446 MB, free: 13.97 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.528e-05/0.1199, allocations: 63.33 kB / 446.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001473/0.1201, allocations: 141.7 kB / 446.2 MB, free: 13.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.575e-05/0.1201, allocations: 29.7 kB / 446.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.154e-05/0.1202, allocations: 84.14 kB / 446.3 MB, free: 13.62 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.682e-05/0.1202, allocations: 15.89 kB / 446.3 MB, free: 13.61 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.863e-05/0.1202, allocations: 25.66 kB / 446.4 MB, free: 13.58 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.1204, allocations: 318.8 kB / 446.7 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.537e-05/0.1204, allocations: 12 kB / 446.7 MB, free: 13.25 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.38e-05/0.1205, allocations: 58.86 kB / 446.7 MB, free: 13.16 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.498e-05/0.1206, allocations: 82.73 kB / 446.8 MB, free: 13.06 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1206, allocations: 0 / 446.8 MB, free: 13.06 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001466/0.1207, allocations: 93.41 kB / 446.9 MB, free: 12.96 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.1208, allocations: 7.938 kB / 446.9 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.1208, allocations: 4.25 kB / 446.9 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.131e-05/0.1208, allocations: 4 kB / 446.9 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.408e-05/0.1209, allocations: 15.98 kB / 446.9 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-05/0.1209, allocations: 4 kB / 446.9 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.387e-05/0.121, allocations: 7.938 kB / 447 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.065e-05/0.121, allocations: 4 kB / 447 MB, free: 12.91 MB / 334.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.0001235/0.1211, allocations: 125.8 kB / 447.1 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001135/0.1212, allocations: 77.53 kB / 447.2 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.721e-05/0.1213, allocations: 16.72 kB / 447.2 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.1213, allocations: 4 kB / 447.2 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.375e-06/0.1213, allocations: 4 kB / 447.2 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.1213, allocations: 3.984 kB / 447.2 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001606/0.1215, allocations: 169.6 kB / 447.4 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1215, allocations: 0 / 447.4 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.772e-05/0.1216, allocations: 19.92 kB / 447.4 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.1216, allocations: 3.938 kB / 447.4 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/0.1216, allocations: 0 / 447.4 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.492e-06/0.1216, allocations: 8.188 kB / 447.4 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1216, allocations: 400 / 447.4 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001711/0.1218, allocations: 120.9 kB / 447.5 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.846e-05/0.1219, allocations: 93 kB / 447.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.314e-05/0.1219, allocations: 7.938 kB / 447.6 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.253e-05/0.122, allocations: 4 kB / 447.6 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.334e-05/0.122, allocations: 0 / 447.6 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.178e-06/0.122, allocations: 3.938 kB / 447.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.531e-05/0.1221, allocations: 115.2 kB / 447.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1221, allocations: 0 / 447.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002082/0.1223, allocations: 8 kB / 447.7 MB, free: 12.04 MB / 334.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.0001247/0.1224, allocations: 103.2 kB / 447.8 MB, free: 11.93 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00015/0.1226, allocations: 43.92 kB / 447.9 MB, free: 11.89 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1226, allocations: 0 / 447.9 MB, free: 11.89 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.61e-07/0.1226, allocations: 0 / 447.9 MB, free: 11.89 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000352/0.123, allocations: 48.44 kB / 447.9 MB, free: 11.84 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003691/0.1233, allocations: 173.5 kB / 448.1 MB, free: 11.65 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003513/0.1237, allocations: 0.7002 MB / 448.8 MB, free: 10.92 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.863e-05/0.1237, allocations: 4.672 kB / 448.8 MB, free: 10.92 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.057e-05/0.1238, allocations: 11.44 kB / 448.8 MB, free: 10.91 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1238, allocations: 0 / 448.8 MB, free: 10.91 MB / 334.1 MB Notification: Performance of Templates: time 0.003359/0.1271, allocations: 0.707 MB / 449.5 MB, free: 10.2 MB / 334.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