Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.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.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|clockToSquareWave.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|clockToSquareWave.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001439/0.001439, allocations: 175.3 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.249/1.249, allocations: 205.4 MB / 222.6 MB, free: 9.117 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.0007102/0.00071, allocations: 95.86 kB / 270.9 MB, free: 8.359 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.06164/0.06164, allocations: 12.58 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003904/0.0003903, allocations: 19.98 kB / 392.7 MB, free: 66.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07576/0.07617, allocations: 50.38 MB / 443 MB, free: 15.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.001502/0.07771, allocations: 1.278 MB / 444.3 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006896/0.07842, allocations: 0.5117 MB / 444.8 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.766e-05/0.07853, allocations: 0 / 444.8 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.492e-05/0.07858, allocations: 3.938 kB / 444.8 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001455/0.07873, allocations: 15.91 kB / 444.8 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002737/0.07901, allocations: 39.89 kB / 444.9 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.943e-05/0.07911, allocations: 43.86 kB / 444.9 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.347e-05/0.07921, allocations: 16.16 kB / 444.9 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.738e-05/0.07928, allocations: 23.86 kB / 445 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.406e-05/0.07935, allocations: 19.92 kB / 445 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.787e-05/0.07938, allocations: 7.938 kB / 445 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.225e-05/0.07939, allocations: 0 / 445 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.228e-05/0.07944, allocations: 15.92 kB / 445 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.58e-05/0.07948, allocations: 37.64 kB / 445 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.146e-05/0.07956, allocations: 39.92 kB / 445.1 MB, free: 13.71 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.07957, allocations: 0 / 445.1 MB, free: 13.71 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.07958, allocations: 0 / 445.1 MB, free: 13.71 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.569e-06/0.07959, allocations: 0 / 445.1 MB, free: 13.71 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0003959/0.07999, allocations: 375.3 kB / 445.5 MB, free: 13.3 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.073e-05/0.08003, allocations: 8.031 kB / 445.5 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.372e-05/0.08007, allocations: 11.91 kB / 445.5 MB, free: 13.28 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00015/0.08022, allocations: 194.8 kB / 445.7 MB, free: 13.05 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.062e-05/0.08024, allocations: 8 kB / 445.7 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.938e-06/0.08026, allocations: 0 / 445.7 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002482/0.08051, allocations: 145.7 kB / 445.8 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.08053, allocations: 0 / 445.8 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.207e-06/0.08054, allocations: 4 kB / 445.8 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.08056, allocations: 0 / 445.8 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.339e-05/0.08064, allocations: 27.92 kB / 445.8 MB, free: 12.85 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002669/0.08092, allocations: 290.5 kB / 446.1 MB, free: 12.51 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000176/0.08111, allocations: 160.8 kB / 446.3 MB, free: 12.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.416e-05/0.08118, allocations: 38.69 kB / 446.3 MB, free: 12.26 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.412e-05/0.08121, allocations: 3.984 kB / 446.3 MB, free: 12.25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.588e-05/0.08123, allocations: 42.5 kB / 446.4 MB, free: 12.2 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.162e-06/0.08124, allocations: 0 / 446.4 MB, free: 12.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002517/0.0815, allocations: 93.52 kB / 446.5 MB, free: 12.11 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.167e-05/0.08155, allocations: 114.8 kB / 446.6 MB, free: 11.97 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.401e-05/0.08164, allocations: 138.1 kB / 446.7 MB, free: 11.82 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.797e-06/0.08165, allocations: 25.7 kB / 446.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.941e-05/0.08169, allocations: 92.58 kB / 446.8 MB, free: 11.7 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.54e-05/0.08171, allocations: 11.89 kB / 446.8 MB, free: 11.68 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.397e-06/0.08172, allocations: 0 / 446.8 MB, free: 11.68 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.015e-05/0.08177, allocations: 318.8 kB / 447.1 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.834e-05/0.08183, allocations: 19.92 kB / 447.2 MB, free: 11.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.034e-05/0.08188, allocations: 44.28 kB / 447.2 MB, free: 11.29 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.295e-05/0.08194, allocations: 23.98 kB / 447.2 MB, free: 11.26 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.08195, allocations: 0 / 447.2 MB, free: 11.26 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001656/0.08212, allocations: 89.55 kB / 447.3 MB, free: 11.17 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.08215, allocations: 12.12 kB / 447.3 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.08216, allocations: 4 kB / 447.3 MB, free: 11.15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.08218, allocations: 0 / 447.3 MB, free: 11.15 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.466e-05/0.08226, allocations: 12 kB / 447.3 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.08227, allocations: 3.984 kB / 447.3 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.842e-05/0.08232, allocations: 11.86 kB / 447.4 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.335e-06/0.08234, allocations: 4 kB / 447.4 MB, free: 11.12 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (clockToSquareWave.y2,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.713e-05/0.08241, allocations: 126.8 kB / 447.5 MB, free: 10.99 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.472e-05/0.08248, allocations: 61.59 kB / 447.5 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.19e-05/0.08252, allocations: 16.23 kB / 447.6 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.08253, allocations: 0 / 447.6 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.08254, allocations: 0 / 447.6 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.08255, allocations: 7.938 kB / 447.6 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001388/0.08269, allocations: 173.6 kB / 447.7 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.0827, allocations: 3.938 kB / 447.7 MB, free: 10.67 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.453e-05/0.08276, allocations: 11.98 kB / 447.8 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.08277, allocations: 0 / 447.8 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/0.08278, allocations: 4 kB / 447.8 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.08279, allocations: 0 / 447.8 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/0.0828, allocations: 7.938 kB / 447.8 MB, free: 10.65 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001556/0.08296, allocations: 189.1 kB / 448 MB, free: 10.44 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.325e-05/0.08301, allocations: 101 kB / 448.1 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.717e-05/0.08303, allocations: 4 kB / 448.1 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.228e-05/0.08311, allocations: 4 kB / 448.1 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.148e-05/0.08315, allocations: 0 / 448.1 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.1e-06/0.08316, allocations: 4 kB / 448.1 MB, free: 10.31 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.685e-05/0.08321, allocations: 111.2 kB / 448.2 MB, free: 10.2 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08322, allocations: 0 / 448.2 MB, free: 10.2 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002035/0.08343, allocations: 12 kB / 448.2 MB, free: 10.19 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 (clockToSquareWave.y,clockToSquareWave.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 7.902e-05/0.08351, allocations: 95.19 kB / 448.3 MB, free: 10.09 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001471/0.08366, allocations: 55.91 kB / 448.3 MB, free: 10.04 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.08368, allocations: 0 / 448.3 MB, free: 10.04 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.904e-05/0.08372, allocations: 11.98 kB / 448.3 MB, free: 10.02 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003494/0.08408, allocations: 26.14 kB / 448.4 MB, free: 10 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000315/0.0844, allocations: 245 kB / 448.6 MB, free: 9.723 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001408/0.08455, allocations: 0.6926 MB / 449.3 MB, free: 9.004 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.181e-05/0.08459, allocations: 15.42 kB / 449.3 MB, free: 8.988 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.0846, allocations: 7.938 kB / 449.3 MB, free: 8.98 MB / 298.7 MB Notification: Performance of Templates: time 0.001871/0.08647, allocations: 0.8578 MB / 450.2 MB, free: 8.129 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches