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.0009722/0.0009722, allocations: 96.94 kB / 16.06 MB, free: 40 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001425/0.001425, allocations: 181.7 kB / 16.96 MB, free: 6.895 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.238/1.238, allocations: 205.4 MB / 223.1 MB, free: 5.5 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06266/0.06266, allocations: 12.6 MB / 284 MB, free: 8.578 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.000669/0.000669, allocations: 20 kB / 345.2 MB, free: 20.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08315/0.08383, allocations: 50.39 MB / 395.6 MB, free: 2.418 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.001859/0.08572, allocations: 1.29 MB / 396.9 MB, free: 1.113 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007625/0.08652, allocations: 0.5191 MB / 397.4 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.478e-05/0.08661, allocations: 0 / 397.4 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.907e-05/0.08666, allocations: 3.938 kB / 397.4 MB, free: 0.582 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001102/0.08677, allocations: 7.938 kB / 397.4 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002562/0.08704, allocations: 43.89 kB / 397.4 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.066e-05/0.08713, allocations: 43.86 kB / 397.5 MB, free: 500 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.688e-05/0.08723, allocations: 24.16 kB / 397.5 MB, free: 476 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.344e-05/0.0873, allocations: 19.88 kB / 397.5 MB, free: 456 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.052e-05/0.08736, allocations: 23.86 kB / 397.5 MB, free: 432 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.521e-05/0.08738, allocations: 0 / 397.5 MB, free: 432 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.167e-05/0.0874, allocations: 4 kB / 397.5 MB, free: 428 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.535e-05/0.08745, allocations: 15.91 kB / 397.6 MB, free: 412 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.402e-05/0.0875, allocations: 53.5 kB / 397.6 MB, free: 352 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.901e-05/0.08758, allocations: 51.73 kB / 397.7 MB, free: 300 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.0876, allocations: 4 kB / 397.7 MB, free: 296 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.0876, allocations: 0 / 397.7 MB, free: 296 kB / 286.1 MB Notification: Performance of Transformations before backend: time 3.046e-06/0.08761, allocations: 4 kB / 397.7 MB, free: 292 kB / 286.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.0004125/0.08803, allocations: 363.5 kB / 398 MB, free: 15.88 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.847e-05/0.08806, allocations: 8.031 kB / 398 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.164e-05/0.0881, allocations: 12.84 kB / 398 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001677/0.08827, allocations: 200 kB / 398.2 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.867e-06/0.08829, allocations: 8.359 kB / 398.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.338e-05/0.08831, allocations: 4.375 kB / 398.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002656/0.08858, allocations: 141.9 kB / 398.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.253e-06/0.0886, allocations: 0 / 398.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.156e-06/0.08861, allocations: 0 / 398.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.08862, allocations: 4 kB / 398.4 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.692e-05/0.08871, allocations: 35.86 kB / 398.4 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002919/0.08901, allocations: 278.6 kB / 398.7 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001909/0.08922, allocations: 160.9 kB / 398.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.458e-05/0.08931, allocations: 38.62 kB / 398.9 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.591e-05/0.08933, allocations: 3.984 kB / 398.9 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.77e-05/0.08937, allocations: 42.5 kB / 398.9 MB, free: 14.79 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.032e-06/0.08937, allocations: 0 / 398.9 MB, free: 14.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002546/0.08964, allocations: 101.5 kB / 399 MB, free: 14.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.226e-05/0.08971, allocations: 106.8 kB / 399.1 MB, free: 14.55 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001126/0.08983, allocations: 138.4 kB / 399.3 MB, free: 14.4 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.415e-05/0.08985, allocations: 29.7 kB / 399.3 MB, free: 14.37 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.998e-05/0.0899, allocations: 99.98 kB / 399.4 MB, free: 14.27 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.637e-05/0.08993, allocations: 7.891 kB / 399.4 MB, free: 14.26 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.35e-05/0.08996, allocations: 17.72 kB / 399.4 MB, free: 14.23 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.683e-05/0.09006, allocations: 314.8 kB / 399.7 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.195e-05/0.09012, allocations: 19.98 kB / 399.8 MB, free: 13.9 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.517e-05/0.09019, allocations: 52.27 kB / 399.8 MB, free: 13.83 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001095/0.0903, allocations: 64.22 kB / 399.9 MB, free: 13.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.09032, allocations: 4 kB / 399.9 MB, free: 13.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000156/0.09048, allocations: 89.55 kB / 400 MB, free: 13.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.0905, allocations: 4 kB / 400 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.559e-05/0.09052, allocations: 4 kB / 400 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.09054, allocations: 7.984 kB / 400 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.497e-05/0.09061, allocations: 8.125 kB / 400 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.09062, allocations: 4 kB / 400 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.637e-05/0.09067, allocations: 4 kB / 400 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.237e-05/0.09069, allocations: 7.984 kB / 400 MB, free: 13.62 MB / 302.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 8.794e-05/0.09079, allocations: 137.8 kB / 400.1 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.975e-05/0.09087, allocations: 53.58 kB / 400.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.179e-05/0.09091, allocations: 12.25 kB / 400.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.09092, allocations: 0 / 400.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.09093, allocations: 4 kB / 400.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.09094, allocations: 4 kB / 400.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001733/0.09112, allocations: 181.5 kB / 400.4 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.09113, allocations: 0 / 400.4 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.443e-05/0.09119, allocations: 11.98 kB / 400.4 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/0.0912, allocations: 4 kB / 400.4 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.337e-06/0.09121, allocations: 4 kB / 400.4 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.09122, allocations: 3.938 kB / 400.4 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.09123, allocations: 3.938 kB / 400.4 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001978/0.09143, allocations: 193.1 kB / 400.6 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.74e-05/0.0915, allocations: 93 kB / 400.7 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.09153, allocations: 4 kB / 400.7 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.903e-05/0.0916, allocations: 3.984 kB / 400.7 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.943e-05/0.09164, allocations: 4 kB / 400.7 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.408e-06/0.09165, allocations: 4 kB / 400.7 MB, free: 12.8 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.358e-05/0.09174, allocations: 115.2 kB / 400.8 MB, free: 12.69 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.09174, allocations: 0 / 400.8 MB, free: 12.69 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002231/0.09197, allocations: 8 kB / 400.8 MB, free: 12.68 MB / 302.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.084e-05/0.09207, allocations: 99.12 kB / 400.9 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000148/0.09222, allocations: 48.09 kB / 401 MB, free: 12.53 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.09223, allocations: 4.062 kB / 401 MB, free: 12.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.324e-05/0.09228, allocations: 16 kB / 401 MB, free: 12.51 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003308/0.09262, allocations: 24.02 kB / 401 MB, free: 12.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003481/0.09298, allocations: 223.1 kB / 401.2 MB, free: 12.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002617/0.09325, allocations: 0.6926 MB / 401.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.252e-05/0.09329, allocations: 8 kB / 401.9 MB, free: 11.51 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.661e-05/0.09332, allocations: 11.44 kB / 401.9 MB, free: 11.5 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.09333, allocations: 0 / 401.9 MB, free: 11.5 MB / 302.1 MB Notification: Performance of Templates: time 0.002462/0.0958, allocations: 0.5876 MB / 402.5 MB, free: 10.91 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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