Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.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.RealSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|unitDelay1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|unitDelay1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001232/0.001238, allocations: 175.8 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.585/1.585, 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.0007593/0.0007592, allocations: 104.8 kB / 270.9 MB, free: 8.34 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.07915/0.07915, allocations: 12.6 MB / 331.8 MB, free: 11.36 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003918/0.0003918, allocations: 16 kB / 392 MB, free: 66.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07793/0.07834, allocations: 50.37 MB / 442.4 MB, free: 16.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock): time 0.001008/0.07939, allocations: 0.6584 MB / 443 MB, free: 15.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002572/0.07966, allocations: 119.7 kB / 443.2 MB, free: 15.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.259e-05/0.07975, allocations: 0 / 443.2 MB, free: 15.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.831e-05/0.07979, allocations: 3.938 kB / 443.2 MB, free: 15.67 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001242/0.07992, allocations: 7.984 kB / 443.2 MB, free: 15.66 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001995/0.08013, allocations: 27.91 kB / 443.2 MB, free: 15.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.774e-05/0.0802, allocations: 31.92 kB / 443.2 MB, free: 15.61 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.885e-05/0.0803, allocations: 20.11 kB / 443.2 MB, free: 15.58 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.191e-05/0.08033, allocations: 15.94 kB / 443.3 MB, free: 15.57 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.836e-05/0.08037, allocations: 15.91 kB / 443.3 MB, free: 15.55 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.549e-05/0.08039, allocations: 4 kB / 443.3 MB, free: 15.55 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.909e-06/0.08041, allocations: 3.938 kB / 443.3 MB, free: 15.54 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.153e-05/0.08044, allocations: 11.94 kB / 443.3 MB, free: 15.53 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.679e-05/0.08048, allocations: 41.62 kB / 443.3 MB, free: 15.48 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.152e-05/0.08054, allocations: 27.95 kB / 443.4 MB, free: 15.46 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.08055, allocations: 0 / 443.4 MB, free: 15.46 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.08056, allocations: 0 / 443.4 MB, free: 15.46 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.08057, allocations: 4 kB / 443.4 MB, free: 15.45 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.0003161/0.08089, allocations: 367.3 kB / 443.7 MB, free: 15.05 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.08093, allocations: 8.031 kB / 443.7 MB, free: 15.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.265e-05/0.08097, allocations: 7.906 kB / 443.7 MB, free: 15.03 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001427/0.08112, allocations: 190.9 kB / 443.9 MB, free: 14.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.181e-05/0.08114, allocations: 0 / 443.9 MB, free: 14.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.469e-05/0.08116, allocations: 11.95 kB / 443.9 MB, free: 14.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002273/0.08139, allocations: 131.2 kB / 444.1 MB, free: 14.65 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.283e-06/0.08141, allocations: 0 / 444.1 MB, free: 14.65 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.216e-06/0.08142, allocations: 0 / 444.1 MB, free: 14.65 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.08143, allocations: 0 / 444.1 MB, free: 14.65 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.681e-05/0.08147, allocations: 15.98 kB / 444.1 MB, free: 14.64 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001057/0.08159, allocations: 173.6 kB / 444.3 MB, free: 14.42 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000107/0.0817, allocations: 74.66 kB / 444.3 MB, free: 14.34 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.834e-05/0.08176, allocations: 36.84 kB / 444.4 MB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.818e-06/0.08177, allocations: 0 / 444.4 MB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.342e-05/0.08179, allocations: 38.55 kB / 444.4 MB, free: 14.25 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 9.52e-07/0.0818, allocations: 3.938 kB / 444.4 MB, free: 14.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001686/0.08197, allocations: 89.67 kB / 444.5 MB, free: 14.15 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.31e-05/0.08201, allocations: 55.41 kB / 444.5 MB, free: 14.09 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.129e-05/0.0821, allocations: 140.4 kB / 444.7 MB, free: 13.94 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.254e-06/0.08211, allocations: 29.7 kB / 444.7 MB, free: 13.91 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.156e-05/0.08214, allocations: 88.14 kB / 444.8 MB, free: 13.82 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.052e-05/0.08216, allocations: 3.984 kB / 444.8 MB, free: 13.81 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.765e-06/0.08216, allocations: 0 / 444.8 MB, free: 13.81 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.173e-05/0.08221, allocations: 318.8 kB / 445.1 MB, free: 13.49 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.635e-05/0.08223, allocations: 11.98 kB / 445.1 MB, free: 13.48 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.999e-05/0.08227, allocations: 54.88 kB / 445.2 MB, free: 13.4 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.866e-05/0.0823, allocations: 19.94 kB / 445.2 MB, free: 13.38 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.08231, allocations: 0 / 445.2 MB, free: 13.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 9.471e-05/0.08241, allocations: 101.3 kB / 445.3 MB, free: 13.28 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.051e-05/0.08243, allocations: 4 kB / 445.3 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.08244, allocations: 7.984 kB / 445.3 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.08245, allocations: 4 kB / 445.3 MB, free: 13.26 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.117e-05/0.08252, allocations: 12 kB / 445.3 MB, free: 13.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.08253, allocations: 3.984 kB / 445.3 MB, free: 13.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.311e-05/0.08257, allocations: 8.188 kB / 445.3 MB, free: 13.24 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.163e-06/0.08258, allocations: 12 kB / 445.3 MB, free: 13.23 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: 0 () * 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 5.948e-05/0.08265, allocations: 129.6 kB / 445.5 MB, free: 13.09 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.709e-05/0.08272, allocations: 73.55 kB / 445.5 MB, free: 13.01 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.666e-05/0.08275, allocations: 8.719 kB / 445.6 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.08276, allocations: 4 kB / 445.6 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.08277, allocations: 0 / 445.6 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.08278, allocations: 0 / 445.6 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.358e-05/0.08285, allocations: 173.6 kB / 445.7 MB, free: 12.78 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.08285, allocations: 0 / 445.7 MB, free: 12.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.984e-05/0.08291, allocations: 16 kB / 445.7 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.08292, allocations: 7.922 kB / 445.7 MB, free: 12.76 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.583e-06/0.08293, allocations: 3.953 kB / 445.8 MB, free: 12.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.08294, allocations: 4 kB / 445.8 MB, free: 12.75 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.08294, allocations: 0 / 445.8 MB, free: 12.75 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.53e-05/0.08303, allocations: 97.42 kB / 445.9 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.591e-05/0.08308, allocations: 93 kB / 445.9 MB, free: 12.53 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.305e-05/0.08309, allocations: 192 / 445.9 MB, free: 12.53 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.853e-05/0.08312, allocations: 7.953 kB / 445.9 MB, free: 12.52 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.462e-06/0.08313, allocations: 7.938 kB / 446 MB, free: 12.51 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.566e-06/0.08314, allocations: 0 / 446 MB, free: 12.51 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.194e-05/0.08318, allocations: 110.2 kB / 446.1 MB, free: 12.41 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08319, allocations: 0 / 446.1 MB, free: 12.41 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001862/0.08338, 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: 0 () * 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.779e-05/0.08347, allocations: 99.19 kB / 446.2 MB, free: 12.29 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001001/0.08358, allocations: 52.34 kB / 446.2 MB, free: 12.24 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.08359, allocations: 0 / 446.2 MB, free: 12.24 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.01e-07/0.0836, allocations: 0 / 446.2 MB, free: 12.24 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002923/0.08389, allocations: 40.02 kB / 446.3 MB, free: 12.2 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002413/0.08415, allocations: 216.9 kB / 446.5 MB, free: 11.95 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000109/0.08427, allocations: 0.7006 MB / 447.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.978e-05/0.0843, allocations: 11.44 kB / 447.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.0843, allocations: 0 / 447.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of Templates: time 0.001664/0.08597, allocations: 0.7888 MB / 448 MB, free: 10.43 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches