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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001422/0.001422, allocations: 101.2 kB / 16.02 MB, free: 6.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001858/0.001859, allocations: 200.1 kB / 16.95 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.677/1.677, allocations: 205.1 MB / 222.8 MB, free: 12.44 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08284/0.08284, allocations: 12.57 MB / 282.7 MB, free: 15.64 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001564/0.001564, allocations: 87.88 kB / 343 MB, free: 3.289 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2923/0.2939, allocations: 49.37 MB / 392.4 MB, free: 49.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.004012/0.2979, allocations: 1.64 MB / 394 MB, free: 47.97 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009778/0.299, allocations: 0.5249 MB / 394.5 MB, free: 47.6 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001015/0.2991, allocations: 1.188 kB / 394.5 MB, free: 47.6 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.257e-05/0.2992, allocations: 5.438 kB / 394.5 MB, free: 47.59 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001554/0.2993, allocations: 7.5 kB / 394.5 MB, free: 47.59 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003384/0.2997, allocations: 59.77 kB / 394.6 MB, free: 47.55 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001308/0.2998, allocations: 49.39 kB / 394.6 MB, free: 47.53 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001383/0.2999, allocations: 15.27 kB / 394.7 MB, free: 47.53 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.355e-05/0.3, allocations: 25.44 kB / 394.7 MB, free: 47.52 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.261e-05/0.3001, allocations: 34.25 kB / 394.7 MB, free: 47.49 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.07e-05/0.3001, allocations: 2.969 kB / 394.7 MB, free: 47.49 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.799e-05/0.3002, allocations: 4.844 kB / 394.7 MB, free: 47.49 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.587e-05/0.3002, allocations: 14.45 kB / 394.7 MB, free: 47.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.519e-05/0.3003, allocations: 29.67 kB / 394.8 MB, free: 47.46 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001502/0.3005, allocations: 56.56 kB / 394.8 MB, free: 47.44 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.3005, allocations: 0 / 394.8 MB, free: 47.44 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3005, allocations: 0 / 394.8 MB, free: 47.44 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.3005, allocations: 1.5 kB / 394.8 MB, free: 47.44 MB / 318.1 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.0005137/0.301, allocations: 386.8 kB / 395.2 MB, free: 47.05 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/0.3011, allocations: 10.28 kB / 395.2 MB, free: 47.05 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.021e-05/0.3011, allocations: 9.125 kB / 395.2 MB, free: 47.04 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000187/0.3013, allocations: 200.1 kB / 395.4 MB, free: 46.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.838e-06/0.3013, allocations: 3.562 kB / 395.4 MB, free: 46.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.462e-05/0.3013, allocations: 2.781 kB / 395.4 MB, free: 46.82 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003405/0.3017, allocations: 141.3 kB / 395.6 MB, free: 46.72 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.3017, allocations: 1 kB / 395.6 MB, free: 46.72 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.362e-05/0.3017, allocations: 5.172 kB / 395.6 MB, free: 46.71 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.3017, allocations: 1.062 kB / 395.6 MB, free: 46.71 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.444e-05/0.3018, allocations: 26.14 kB / 395.6 MB, free: 46.71 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003555/0.3022, allocations: 283.6 kB / 395.9 MB, free: 46.4 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000197/0.3024, allocations: 157.8 kB / 396 MB, free: 46.23 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.915e-05/0.3025, allocations: 47.3 kB / 396.1 MB, free: 46.19 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.251e-05/0.3025, allocations: 1.938 kB / 396.1 MB, free: 46.19 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.806e-05/0.3025, allocations: 33.7 kB / 396.1 MB, free: 46.15 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 1.232e-06/0.3026, allocations: 0 / 396.1 MB, free: 46.15 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002934/0.3028, allocations: 92.92 kB / 396.2 MB, free: 46.1 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.619e-05/0.3029, allocations: 114.1 kB / 396.3 MB, free: 45.96 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001241/0.303, allocations: 144.4 kB / 396.5 MB, free: 45.85 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.898e-06/0.3031, allocations: 25.7 kB / 396.5 MB, free: 45.82 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.797e-05/0.3031, allocations: 88.2 kB / 396.6 MB, free: 45.73 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.187e-05/0.3031, allocations: 6.375 kB / 396.6 MB, free: 45.73 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.364e-05/0.3032, allocations: 30.58 kB / 396.6 MB, free: 45.7 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.611e-05/0.3033, allocations: 317.6 kB / 396.9 MB, free: 45.39 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.589e-05/0.3033, allocations: 19.5 kB / 396.9 MB, free: 45.38 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.836e-05/0.3034, allocations: 42.11 kB / 397 MB, free: 45.34 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001236/0.3035, allocations: 63.5 kB / 397 MB, free: 45.28 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.3035, allocations: 1.094 kB / 397 MB, free: 45.28 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001606/0.3037, allocations: 90.8 kB / 397.1 MB, free: 45.23 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.3037, allocations: 7.312 kB / 397.1 MB, free: 45.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.3037, allocations: 2.047 kB / 397.1 MB, free: 45.23 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.3037, allocations: 1.156 kB / 397.1 MB, free: 45.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.544e-05/0.3038, allocations: 14.38 kB / 397.1 MB, free: 45.22 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.3038, allocations: 5.797 kB / 397.2 MB, free: 45.22 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.504e-05/0.3039, allocations: 3.328 kB / 397.2 MB, free: 45.22 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.137e-06/0.3039, allocations: 5.203 kB / 397.2 MB, free: 45.22 MB / 318.1 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.y,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.805e-05/0.304, allocations: 130.4 kB / 397.3 MB, free: 45.09 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.558e-05/0.3041, allocations: 51.47 kB / 397.3 MB, free: 45.05 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.726e-05/0.3041, allocations: 17.44 kB / 397.4 MB, free: 45.04 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.3041, allocations: 2.562 kB / 397.4 MB, free: 45.04 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.3041, allocations: 0 / 397.4 MB, free: 45.04 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.3041, allocations: 4.781 kB / 397.4 MB, free: 45.03 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000141/0.3043, allocations: 186.4 kB / 397.5 MB, free: 44.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.3043, allocations: 0 / 397.5 MB, free: 44.82 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.178e-05/0.3043, allocations: 13.2 kB / 397.6 MB, free: 44.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.3043, allocations: 0.6094 kB / 397.6 MB, free: 44.82 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/0.3044, allocations: 8.531 kB / 397.6 MB, free: 44.82 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.3044, allocations: 4 kB / 397.6 MB, free: 44.81 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3044, allocations: 160 / 397.6 MB, free: 44.81 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001636/0.3045, allocations: 187.3 kB / 397.8 MB, free: 44.64 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.073e-05/0.3046, allocations: 94.19 kB / 397.8 MB, free: 44.54 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.896e-05/0.3046, allocations: 5.125 kB / 397.9 MB, free: 44.54 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.601e-05/0.3047, allocations: 1.031 kB / 397.9 MB, free: 44.54 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.12e-05/0.3047, allocations: 2.25 kB / 397.9 MB, free: 44.54 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.765e-06/0.3047, allocations: 7.125 kB / 397.9 MB, free: 44.54 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.2e-05/0.3048, allocations: 111.7 kB / 398 MB, free: 44.45 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3048, allocations: 4 kB / 398 MB, free: 44.45 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002232/0.305, allocations: 11.5 kB / 398 MB, free: 44.45 MB / 318.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.86e-05/0.3051, allocations: 99.94 kB / 398.1 MB, free: 44.36 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001701/0.3053, allocations: 43.97 kB / 398.1 MB, free: 44.34 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3053, allocations: 0 / 398.1 MB, free: 44.34 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.038e-05/0.3054, allocations: 13.33 kB / 398.1 MB, free: 44.34 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004105/0.3058, allocations: 30.53 kB / 398.2 MB, free: 44.33 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003527/0.3062, allocations: 207.8 kB / 398.4 MB, free: 44.15 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001773/0.3063, allocations: 0.7085 MB / 399.1 MB, free: 43.44 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.877e-05/0.3064, allocations: 5.109 kB / 399.1 MB, free: 43.44 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.329e-05/0.3064, allocations: 14.84 kB / 399.1 MB, free: 43.43 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3064, allocations: 0 / 399.1 MB, free: 43.43 MB / 318.1 MB Notification: Performance of Templates: time 0.002843/0.3093, allocations: 0.611 MB / 399.7 MB, free: 43.19 MB / 318.1 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/jenkins/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