Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_cpp_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_cpp_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.001318/0.001318, allocations: 178.9 kB / 16.45 MB, free: 5.684 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.562/1.562, allocations: 205.4 MB / 222.6 MB, free: 9.102 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.0007376/0.000738, allocations: 96.92 kB / 270.9 MB, free: 8.344 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.0682/0.0682, allocations: 12.59 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003858/0.0003859, allocations: 20 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06883/0.06924, allocations: 50.37 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock): time 0.0008901/0.07018, allocations: 0.5429 MB / 442.9 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002701/0.07047, allocations: 127.7 kB / 443 MB, free: 15.79 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.922e-05/0.07055, allocations: 0 / 443 MB, free: 15.79 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.534e-05/0.07064, allocations: 7.922 kB / 443 MB, free: 15.78 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001131/0.07076, allocations: 4 kB / 443.1 MB, free: 15.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001869/0.07096, allocations: 31.91 kB / 443.1 MB, free: 15.74 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.881e-05/0.07105, allocations: 43.84 kB / 443.1 MB, free: 15.7 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.706e-05/0.07114, allocations: 15.98 kB / 443.1 MB, free: 15.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.372e-05/0.07117, allocations: 15.88 kB / 443.2 MB, free: 15.67 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.193e-05/0.07123, allocations: 15.92 kB / 443.2 MB, free: 15.65 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.929e-05/0.07126, allocations: 0 / 443.2 MB, free: 15.65 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.021e-05/0.07127, allocations: 0 / 443.2 MB, free: 15.65 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.97e-05/0.07131, allocations: 23.91 kB / 443.2 MB, free: 15.63 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.633e-05/0.07134, allocations: 37.64 kB / 443.2 MB, free: 15.59 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.717e-05/0.0714, allocations: 35.94 kB / 443.3 MB, free: 15.55 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.07141, allocations: 0 / 443.3 MB, free: 15.55 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.07142, allocations: 0 / 443.3 MB, free: 15.55 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.407e-06/0.07143, allocations: 4 kB / 443.3 MB, free: 15.55 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.0003398/0.07177, allocations: 363.3 kB / 443.6 MB, free: 15.14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.224e-05/0.07181, allocations: 8.031 kB / 443.6 MB, free: 15.14 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.007e-05/0.07185, allocations: 11.89 kB / 443.6 MB, free: 15.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001288/0.07198, allocations: 194.9 kB / 443.8 MB, free: 14.89 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.113e-05/0.072, allocations: 11.95 kB / 443.8 MB, free: 14.88 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.396e-05/0.07203, allocations: 8 kB / 443.9 MB, free: 14.88 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002301/0.07227, allocations: 139.1 kB / 444 MB, free: 14.73 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.331e-06/0.07228, allocations: 0 / 444 MB, free: 14.73 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.296e-06/0.0723, allocations: 4 kB / 444 MB, free: 14.72 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.07231, allocations: 0 / 444 MB, free: 14.72 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.083e-05/0.07235, allocations: 19.98 kB / 444 MB, free: 14.7 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.635e-05/0.07246, allocations: 177.6 kB / 444.2 MB, free: 14.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001163/0.07258, allocations: 82.59 kB / 444.3 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.323e-05/0.07264, allocations: 44.88 kB / 444.3 MB, free: 14.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.766e-06/0.07266, allocations: 0 / 444.3 MB, free: 14.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.402e-05/0.07268, allocations: 38.56 kB / 444.4 MB, free: 14.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 8.32e-07/0.07268, allocations: 4 kB / 444.4 MB, free: 14.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001574/0.07285, allocations: 97.52 kB / 444.5 MB, free: 14.19 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.132e-05/0.07289, allocations: 55.41 kB / 444.5 MB, free: 14.12 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.273e-05/0.07297, allocations: 141 kB / 444.6 MB, free: 13.98 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.753e-06/0.07299, allocations: 25.7 kB / 444.7 MB, free: 13.95 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.087e-05/0.07301, allocations: 92.28 kB / 444.8 MB, free: 13.85 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.054e-05/0.07303, allocations: 8 kB / 444.8 MB, free: 13.84 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.176e-06/0.07304, allocations: 0 / 444.8 MB, free: 13.84 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.238e-05/0.07309, allocations: 322.8 kB / 445.1 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.767e-05/0.07311, allocations: 8 kB / 445.1 MB, free: 13.51 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.328e-05/0.07315, allocations: 70.72 kB / 445.2 MB, free: 13.42 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.95e-05/0.07318, allocations: 16 kB / 445.2 MB, free: 13.4 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.07319, allocations: 4 kB / 445.2 MB, free: 13.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001005/0.0733, allocations: 97.34 kB / 445.3 MB, free: 13.3 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.164e-05/0.07331, allocations: 4 kB / 445.3 MB, free: 13.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.07332, allocations: 4.25 kB / 445.3 MB, free: 13.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.056e-05/0.07334, allocations: 8 kB / 445.3 MB, free: 13.28 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.782e-05/0.07341, allocations: 12 kB / 445.3 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.07343, allocations: 7.938 kB / 445.3 MB, free: 13.26 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.623e-05/0.07347, allocations: 7.922 kB / 445.3 MB, free: 13.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.552e-06/0.07348, allocations: 4 kB / 445.3 MB, free: 13.25 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,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 6.698e-05/0.07355, allocations: 134.4 kB / 445.5 MB, free: 13.11 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.783e-05/0.07363, allocations: 85.44 kB / 445.5 MB, free: 13.02 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.758e-05/0.07367, allocations: 12.72 kB / 445.5 MB, free: 13.01 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.07368, allocations: 8 kB / 445.6 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.07369, allocations: 0 / 445.6 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.07369, allocations: 0 / 445.6 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.595e-05/0.07375, allocations: 169.6 kB / 445.7 MB, free: 12.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.91e-07/0.07376, allocations: 4 kB / 445.7 MB, free: 12.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.505e-05/0.07383, allocations: 11.94 kB / 445.7 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.07384, allocations: 7.953 kB / 445.7 MB, free: 12.76 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.422e-06/0.07385, allocations: 0 / 445.7 MB, free: 12.76 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.07386, allocations: 0 / 445.7 MB, free: 12.76 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.07386, allocations: 0 / 445.7 MB, free: 12.76 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001055/0.07397, allocations: 109.4 kB / 445.9 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.144e-05/0.07402, allocations: 93 kB / 445.9 MB, free: 12.53 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.638e-05/0.07405, allocations: 7.953 kB / 445.9 MB, free: 12.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.559e-05/0.07408, allocations: 7.984 kB / 446 MB, free: 12.51 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.725e-06/0.07409, allocations: 0 / 446 MB, free: 12.51 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.518e-06/0.0741, allocations: 4 kB / 446 MB, free: 12.51 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.06e-05/0.07415, allocations: 105.8 kB / 446.1 MB, free: 12.41 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.07416, allocations: 0 / 446.1 MB, free: 12.41 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001922/0.07435, allocations: 8 kB / 446.1 MB, free: 12.4 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 (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 8.28e-05/0.07444, allocations: 107.2 kB / 446.2 MB, free: 12.28 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.979e-05/0.07454, allocations: 47.98 kB / 446.2 MB, free: 12.23 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.07455, allocations: 0 / 446.2 MB, free: 12.23 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.21e-07/0.07456, allocations: 0 / 446.2 MB, free: 12.23 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002583/0.07482, allocations: 48.5 kB / 446.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002346/0.07506, allocations: 228.9 kB / 446.5 MB, free: 11.93 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001108/0.07519, allocations: 0.7082 MB / 447.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.004e-05/0.07521, allocations: 11.44 kB / 447.2 MB, free: 11.18 MB / 298.7 MB Notification: Performance of SimCode: time 2.91e-07/0.07522, allocations: 0 / 447.2 MB, free: 11.18 MB / 298.7 MB Notification: Performance of Templates: time 0.001848/0.07707, allocations: 0.8604 MB / 448.1 MB, free: 10.32 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_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_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches