Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_cpp_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_cpp_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.002222/0.002222, allocations: 174.6 kB / 16.77 MB, free: 4.898 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.9 MB, free: 8.934 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.0007415/0.0007415, allocations: 97.41 kB / 271.3 MB, free: 8.227 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.07033/0.07033, allocations: 12.6 MB / 332.2 MB, free: 11.22 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004204/0.0004206, allocations: 16 kB / 392.6 MB, free: 66.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0817/0.08214, allocations: 50.37 MB / 443 MB, free: 16.12 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.001442/0.08364, allocations: 1.278 MB / 444.2 MB, free: 14.83 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006468/0.0843, allocations: 0.4922 MB / 444.7 MB, free: 14.33 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.116e-05/0.08439, allocations: 7.938 kB / 444.7 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.223e-05/0.08443, allocations: 7.922 kB / 444.7 MB, free: 14.31 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001269/0.08456, allocations: 11.92 kB / 444.8 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002675/0.08484, allocations: 47.89 kB / 444.8 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.854e-05/0.08493, allocations: 43.86 kB / 444.9 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.857e-05/0.08503, allocations: 16.17 kB / 444.9 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.373e-05/0.0851, allocations: 15.92 kB / 444.9 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.243e-05/0.08516, allocations: 19.86 kB / 444.9 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.702e-05/0.08519, allocations: 8 kB / 444.9 MB, free: 14.15 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.307e-05/0.0852, allocations: 0 / 444.9 MB, free: 14.15 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.865e-05/0.08525, allocations: 19.86 kB / 444.9 MB, free: 14.13 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.399e-05/0.0853, allocations: 49.52 kB / 445 MB, free: 14.08 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.786e-05/0.08537, allocations: 39.91 kB / 445 MB, free: 14.04 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.08539, allocations: 4 kB / 445 MB, free: 14.04 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.08539, allocations: 0 / 445 MB, free: 14.04 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.068e-06/0.0854, allocations: 0 / 445 MB, free: 14.04 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.0003851/0.08579, allocations: 371.5 kB / 445.4 MB, free: 13.62 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.08583, allocations: 8.031 kB / 445.4 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.377e-05/0.08587, allocations: 8.844 kB / 445.4 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001504/0.08603, allocations: 196.1 kB / 445.6 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.187e-05/0.08605, allocations: 8.375 kB / 445.6 MB, free: 13.37 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.066e-05/0.08606, allocations: 4.375 kB / 445.6 MB, free: 13.37 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000253/0.08632, allocations: 145.9 kB / 445.7 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.08634, allocations: 0 / 445.7 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.015e-05/0.08636, allocations: 3.938 kB / 445.7 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.648e-06/0.08637, allocations: 0 / 445.7 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.864e-05/0.08645, allocations: 31.97 kB / 445.8 MB, free: 13.17 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002817/0.08674, allocations: 278.6 kB / 446.1 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001739/0.08693, allocations: 172.9 kB / 446.2 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.349e-05/0.087, allocations: 34.62 kB / 446.3 MB, free: 12.58 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.954e-05/0.08703, allocations: 4 kB / 446.3 MB, free: 12.58 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.367e-05/0.08705, allocations: 34.56 kB / 446.3 MB, free: 12.54 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.302e-06/0.08705, allocations: 0 / 446.3 MB, free: 12.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002458/0.0873, allocations: 109.4 kB / 446.4 MB, free: 12.42 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.35e-05/0.08736, allocations: 102.8 kB / 446.5 MB, free: 12.3 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.555e-05/0.08745, allocations: 134.2 kB / 446.6 MB, free: 12.15 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.648e-06/0.08746, allocations: 33.7 kB / 446.7 MB, free: 12.11 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.691e-05/0.0875, allocations: 92.03 kB / 446.8 MB, free: 12.02 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.709e-05/0.08752, allocations: 12.16 kB / 446.8 MB, free: 12.01 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.258e-06/0.08753, allocations: 0 / 446.8 MB, free: 12.01 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.013e-05/0.08759, allocations: 322.8 kB / 447.1 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.565e-05/0.08764, allocations: 16 kB / 447.1 MB, free: 11.67 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.868e-05/0.0877, allocations: 52.2 kB / 447.1 MB, free: 11.6 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.84e-05/0.08779, allocations: 68.16 kB / 447.2 MB, free: 11.52 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.0878, allocations: 0 / 447.2 MB, free: 11.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001405/0.08795, allocations: 93.59 kB / 447.3 MB, free: 11.42 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.08797, allocations: 8 kB / 447.3 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.08798, allocations: 0 / 447.3 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.088, allocations: 0 / 447.3 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.147e-05/0.08808, allocations: 15.94 kB / 447.3 MB, free: 11.4 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.08809, allocations: 0 / 447.3 MB, free: 11.4 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.49e-05/0.08814, allocations: 7.984 kB / 447.3 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.518e-06/0.08816, allocations: 8.125 kB / 447.3 MB, free: 11.38 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.573e-05/0.08823, allocations: 121.8 kB / 447.5 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.577e-05/0.0883, allocations: 57.53 kB / 447.5 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.004e-05/0.08834, allocations: 12.25 kB / 447.5 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.08835, allocations: 3.984 kB / 447.5 MB, free: 11.17 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.08835, allocations: 0 / 447.5 MB, free: 11.17 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.08836, allocations: 4 kB / 447.5 MB, free: 11.17 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001405/0.08851, allocations: 181.4 kB / 447.7 MB, free: 10.94 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.08852, allocations: 3.938 kB / 447.7 MB, free: 10.94 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.227e-05/0.08858, allocations: 15.98 kB / 447.7 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.08859, allocations: 288 / 447.7 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.556e-06/0.0886, allocations: 4 kB / 447.7 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.08861, allocations: 0 / 447.7 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.08861, allocations: 0 / 447.7 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001477/0.08876, allocations: 201 kB / 447.9 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.154e-05/0.08881, allocations: 97 kB / 448 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.791e-05/0.08884, allocations: 4.047 kB / 448 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.741e-05/0.08891, allocations: 8 kB / 448 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.185e-05/0.08895, allocations: 0 / 448 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.851e-06/0.08896, allocations: 4 kB / 448 MB, free: 10.57 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.788e-05/0.08901, allocations: 107.2 kB / 448.2 MB, free: 10.46 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08902, allocations: 0 / 448.2 MB, free: 10.46 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002122/0.08924, allocations: 16 kB / 448.2 MB, free: 10.45 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.719e-05/0.08932, allocations: 95.19 kB / 448.3 MB, free: 10.35 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001355/0.08946, allocations: 51.91 kB / 448.3 MB, free: 10.3 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.08947, allocations: 0 / 448.3 MB, free: 10.3 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.014e-05/0.08952, allocations: 12.25 kB / 448.3 MB, free: 10.29 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003557/0.08988, allocations: 36.02 kB / 448.4 MB, free: 10.25 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002987/0.09019, allocations: 240.6 kB / 448.6 MB, free: 9.977 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001113/0.09031, allocations: 0.6965 MB / 449.3 MB, free: 9.254 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.771e-05/0.09034, allocations: 11.44 kB / 449.3 MB, free: 9.242 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.09035, allocations: 0 / 449.3 MB, free: 9.242 MB / 298.7 MB Notification: Performance of Templates: time 0.001793/0.09215, allocations: 0.851 MB / 450.2 MB, free: 8.395 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches