Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.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.AssignClockToTriggerHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|clockToTrigger.y|sample.y|triggeredSampler.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|clockToTrigger.y|sample.y|triggeredSampler.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.004179/0.004187, allocations: 187.3 kB / 16.45 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.384/4.384, allocations: 205.4 MB / 222.6 MB, free: 13.85 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.001835/0.001836, allocations: 106.8 kB / 270.9 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1889/0.1889, allocations: 12.59 MB / 331.8 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009624/0.000963, allocations: 18.38 kB / 392 MB, free: 54.84 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2002/0.2013, allocations: 50.36 MB / 442.3 MB, free: 11.62 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.003285/0.2046, allocations: 1.326 MB / 443.7 MB, free: 10.29 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003584/0.2083, allocations: 0.5039 MB / 444.2 MB, free: 9.777 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001758/0.2086, allocations: 4 kB / 444.2 MB, free: 9.773 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 6.28e-05/0.2086, allocations: 11.86 kB / 444.2 MB, free: 9.762 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001835/0.2089, allocations: 15.86 kB / 444.2 MB, free: 9.746 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000565/0.2094, allocations: 47.88 kB / 444.3 MB, free: 9.699 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002294/0.2097, allocations: 43.89 kB / 444.3 MB, free: 9.656 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00025/0.21, allocations: 28.2 kB / 444.3 MB, free: 9.629 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001525/0.2102, allocations: 23.86 kB / 444.3 MB, free: 9.605 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001158/0.2103, allocations: 27.84 kB / 444.4 MB, free: 9.578 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.952e-05/0.2103, allocations: 4 kB / 444.4 MB, free: 9.574 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.572e-05/0.2104, allocations: 0 / 444.4 MB, free: 9.574 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.489e-05/0.2105, allocations: 11.98 kB / 444.4 MB, free: 9.562 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.327e-05/0.2106, allocations: 41.64 kB / 444.4 MB, free: 9.516 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001831/0.2108, allocations: 47.91 kB / 444.5 MB, free: 9.469 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.2108, allocations: 0 / 444.5 MB, free: 9.469 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.916e-06/0.2108, allocations: 4 kB / 444.5 MB, free: 9.465 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.2109, allocations: 0 / 444.5 MB, free: 9.465 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0009107/0.2118, allocations: 375.8 kB / 444.8 MB, free: 9.051 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.852e-05/0.2119, allocations: 11.97 kB / 444.9 MB, free: 9.039 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.978e-05/0.212, allocations: 19.81 kB / 444.9 MB, free: 9.02 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003092/0.2123, allocations: 190.8 kB / 445.1 MB, free: 8.793 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.526e-05/0.2123, allocations: 11.94 kB / 445.1 MB, free: 8.781 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.68e-05/0.2124, allocations: 4 kB / 445.1 MB, free: 8.777 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005648/0.213, allocations: 141 kB / 445.2 MB, free: 8.621 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.213, allocations: 0 / 445.2 MB, free: 8.621 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.349e-05/0.213, allocations: 11.97 kB / 445.2 MB, free: 8.609 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/0.2131, allocations: 0 / 445.2 MB, free: 8.609 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002584/0.2133, allocations: 39.92 kB / 445.3 MB, free: 8.57 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008555/0.2142, allocations: 301.7 kB / 445.6 MB, free: 8.223 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004105/0.2147, allocations: 162.3 kB / 445.7 MB, free: 8.027 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.129e-05/0.2147, allocations: 0 / 445.7 MB, free: 8.027 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002813/0.215, allocations: 67.42 kB / 445.8 MB, free: 7.949 MB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 3.467e-06/0.2151, allocations: 4 kB / 445.8 MB, free: 7.945 MB / 282.7 MB Notification: Performance of matching and sorting (n=9): time 0.0006231/0.2157, allocations: 117.6 kB / 445.9 MB, free: 7.824 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.996e-05/0.2158, allocations: 88.95 kB / 446 MB, free: 7.719 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000201/0.216, allocations: 149.5 kB / 446.1 MB, free: 7.562 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.588e-05/0.2161, allocations: 29.7 kB / 446.2 MB, free: 7.527 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.56e-05/0.2162, allocations: 162.5 kB / 446.3 MB, free: 7.367 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.016e-05/0.2162, allocations: 19.8 kB / 446.3 MB, free: 7.348 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.18e-05/0.2162, allocations: 8 kB / 446.4 MB, free: 7.34 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.926e-05/0.2163, allocations: 310.8 kB / 446.7 MB, free: 7.027 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001479/0.2165, allocations: 23.98 kB / 446.7 MB, free: 7.004 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001698/0.2167, allocations: 61.14 kB / 446.7 MB, free: 6.926 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001699/0.2169, allocations: 35.98 kB / 446.8 MB, free: 6.891 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.2169, allocations: 3.938 kB / 446.8 MB, free: 6.887 MB / 282.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004614/0.2174, allocations: 113.5 kB / 446.9 MB, free: 6.77 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.871e-05/0.2175, allocations: 8 kB / 446.9 MB, free: 6.762 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.461e-05/0.2175, allocations: 0 / 446.9 MB, free: 6.762 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.112e-05/0.2176, allocations: 4 kB / 446.9 MB, free: 6.758 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000184/0.2178, allocations: 15.98 kB / 446.9 MB, free: 6.742 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.492e-05/0.2178, allocations: 3.953 kB / 446.9 MB, free: 6.738 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001471/0.218, allocations: 11.94 kB / 446.9 MB, free: 6.727 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.972e-05/0.218, allocations: 4 kB / 446.9 MB, free: 6.723 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.triggeredSampler.y,triggeredSampler.y,clockToTrigger.y2,$CLKPRE.clockToTrigger.y2,$whenCondition1,triggeredSampler.trigger,$PRE.clockToTrigger.y3,clockToTrigger.y3) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToTrigger.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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.0001827/0.2182, allocations: 141.8 kB / 447.1 MB, free: 6.578 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001436/0.2184, allocations: 57.5 kB / 447.1 MB, free: 6.516 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.262e-05/0.2184, allocations: 12.31 kB / 447.1 MB, free: 6.5 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.582e-06/0.2185, allocations: 0 / 447.1 MB, free: 6.5 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.2185, allocations: 320 / 447.1 MB, free: 6.5 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.136e-06/0.2185, allocations: 3.953 kB / 447.1 MB, free: 6.496 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006699/0.2192, allocations: 358.5 kB / 447.5 MB, free: 6.09 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.2192, allocations: 4 kB / 447.5 MB, free: 6.086 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001361/0.2194, allocations: 11.98 kB / 447.5 MB, free: 6.074 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.086e-05/0.2194, allocations: 4 kB / 447.5 MB, free: 6.07 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.821e-05/0.2194, allocations: 0 / 447.5 MB, free: 6.07 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.943e-06/0.2195, allocations: 3.953 kB / 447.5 MB, free: 6.066 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.2195, allocations: 0 / 447.5 MB, free: 6.066 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004488/0.2199, allocations: 217.9 kB / 447.7 MB, free: 5.828 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001105/0.2201, allocations: 93 kB / 447.8 MB, free: 5.719 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.391e-05/0.2201, allocations: 7.953 kB / 447.8 MB, free: 5.711 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001788/0.2203, allocations: 7.984 kB / 447.8 MB, free: 5.703 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.056e-05/0.2204, allocations: 4 kB / 447.8 MB, free: 5.699 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.636e-05/0.2204, allocations: 0 / 447.8 MB, free: 5.699 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001343/0.2206, allocations: 115.2 kB / 448 MB, free: 5.586 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.435e-06/0.2206, allocations: 4 kB / 448 MB, free: 5.582 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005967/0.2212, allocations: 11.94 kB / 448 MB, free: 5.57 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 (clockToTrigger.y2,triggeredSampler.trigger,$whenCondition1,triggeredSampler.y,clockToTrigger.y3) * Number of discrete states: 1 (clockToTrigger.y3) * Number of clocked states: 1 (clockToTrigger.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001741/0.2214, allocations: 99.25 kB / 448.1 MB, free: 5.465 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004897/0.2219, allocations: 63.91 kB / 448.1 MB, free: 5.402 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.64e-06/0.222, allocations: 0 / 448.1 MB, free: 5.402 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001475/0.2221, allocations: 32.23 kB / 448.2 MB, free: 5.371 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000517/0.2227, allocations: 24.05 kB / 448.2 MB, free: 5.348 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007917/0.2235, allocations: 259.7 kB / 448.4 MB, free: 5.059 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002692/0.2238, allocations: 0.7043 MB / 449.1 MB, free: 4.328 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.007e-05/0.2239, allocations: 15.42 kB / 449.2 MB, free: 4.316 MB / 282.7 MB Notification: Performance of SimCode: time 1.723e-06/0.2239, allocations: 0 / 449.2 MB, free: 4.316 MB / 282.7 MB Notification: Performance of Templates: time 0.004814/0.2287, allocations: 1.013 MB / 450.2 MB, free: 3.309 MB / 282.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches