Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|clockToSquareWave.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|clockToSquareWave.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.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.001886/0.001886, allocations: 109.2 kB / 17.17 MB, free: 6.32 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.00192/0.00192, allocations: 194.9 kB / 18.08 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.504/2.504, allocations: 222.9 MB / 241.8 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002318/0.002318, allocations: 50.39 kB / 300.6 MB, free: 6.328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2212/0.2236, allocations: 49.44 MB / 350.1 MB, free: 4.879 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.006589/0.2303, allocations: 1.647 MB / 351.7 MB, free: 3.215 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001431/0.2318, allocations: 0.4949 MB / 352.2 MB, free: 2.715 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001358/0.2319, allocations: 3.938 kB / 352.2 MB, free: 2.711 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.604e-05/0.232, allocations: 0 / 352.2 MB, free: 2.711 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000225/0.2324, allocations: 7.938 kB / 352.2 MB, free: 2.703 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000507/0.2329, allocations: 47.83 kB / 352.3 MB, free: 2.656 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000166/0.2331, allocations: 47.8 kB / 352.3 MB, free: 2.609 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001811/0.2333, allocations: 20.16 kB / 352.3 MB, free: 2.59 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001082/0.2334, allocations: 19.94 kB / 352.3 MB, free: 2.57 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.923e-05/0.2335, allocations: 27.84 kB / 352.4 MB, free: 2.543 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.758e-05/0.2336, allocations: 0 / 352.4 MB, free: 2.543 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.314e-05/0.2336, allocations: 4 kB / 352.4 MB, free: 2.539 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.692e-05/0.2337, allocations: 15.92 kB / 352.4 MB, free: 2.523 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.042e-05/0.2338, allocations: 35.73 kB / 352.4 MB, free: 2.488 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001402/0.2339, allocations: 39.92 kB / 352.5 MB, free: 2.449 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.992e-06/0.2339, allocations: 3.938 kB / 352.5 MB, free: 2.445 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.234, allocations: 0 / 352.5 MB, free: 2.445 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.364e-05/0.234, allocations: 0 / 352.5 MB, free: 2.445 MB / 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.0008192/0.2348, allocations: 379.4 kB / 352.8 MB, free: 2.027 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.189e-05/0.2349, allocations: 12.03 kB / 352.8 MB, free: 2.016 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.28e-05/0.235, allocations: 12.83 kB / 352.9 MB, free: 2.004 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003298/0.2353, allocations: 188.1 kB / 353 MB, free: 1.781 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.021e-05/0.2353, allocations: 8.375 kB / 353 MB, free: 1.773 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.19e-05/0.2354, allocations: 4.375 kB / 353.1 MB, free: 1.77 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004995/0.2359, allocations: 137.9 kB / 353.2 MB, free: 1.613 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.2359, allocations: 0 / 353.2 MB, free: 1.613 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.05e-05/0.2359, allocations: 4 kB / 353.2 MB, free: 1.609 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.236, allocations: 0 / 353.2 MB, free: 1.609 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001323/0.2361, allocations: 19.98 kB / 353.2 MB, free: 1.59 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005936/0.2367, allocations: 290.5 kB / 353.5 MB, free: 1.25 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003948/0.2371, allocations: 156.9 kB / 353.6 MB, free: 1.051 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001348/0.2373, allocations: 42.56 kB / 353.7 MB, free: 1 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.412e-05/0.2373, allocations: 0 / 353.7 MB, free: 1 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.166e-05/0.2374, allocations: 42.48 kB / 353.7 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 1.633e-06/0.2374, allocations: 0 / 353.7 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0005113/0.2379, allocations: 97.44 kB / 353.8 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001602/0.2381, allocations: 119 kB / 353.9 MB, free: 0.707 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002089/0.2383, allocations: 140.9 kB / 354.1 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.621e-05/0.2384, allocations: 25.7 kB / 354.1 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.69e-05/0.2385, allocations: 92.14 kB / 354.2 MB, free: 448 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.236e-05/0.2385, allocations: 7.891 kB / 354.2 MB, free: 440 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.832e-05/0.2386, allocations: 21.72 kB / 354.2 MB, free: 412 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001996/0.2388, allocations: 322.8 kB / 354.5 MB, free: 80 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.93e-05/0.2389, allocations: 16 kB / 354.6 MB, free: 64 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001242/0.239, allocations: 44.28 kB / 354.6 MB, free: 4 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002366/0.2393, allocations: 64.16 kB / 354.7 MB, free: 15.93 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.2393, allocations: 4 kB / 354.7 MB, free: 15.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002958/0.2396, allocations: 85.5 kB / 354.7 MB, free: 15.83 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.532e-05/0.2397, allocations: 4 kB / 354.8 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.2397, allocations: 0 / 354.8 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.052e-05/0.2397, allocations: 8 kB / 354.8 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001416/0.2399, allocations: 15.94 kB / 354.8 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.355e-05/0.2399, allocations: 4.125 kB / 354.8 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.418e-05/0.24, allocations: 7.984 kB / 354.8 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.518e-05/0.2401, allocations: 4 kB / 354.8 MB, free: 15.79 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 0.0002189/0.2403, allocations: 121.7 kB / 354.9 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001731/0.2405, allocations: 57.53 kB / 355 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001022/0.2406, allocations: 12.25 kB / 355 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.967e-06/0.2406, allocations: 3.984 kB / 355 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/0.2406, allocations: 0 / 355 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.299e-05/0.2407, allocations: 4 kB / 355 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004865/0.2412, allocations: 185.5 kB / 355.2 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.2412, allocations: 0 / 355.2 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001039/0.2413, allocations: 11.98 kB / 355.2 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.2413, allocations: 0 / 355.2 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.632e-05/0.2414, allocations: 0 / 355.2 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.2e-05/0.2414, allocations: 4 kB / 355.2 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.2414, allocations: 3.938 kB / 355.2 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004039/0.2418, allocations: 193 kB / 355.4 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001539/0.242, allocations: 96.94 kB / 355.5 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.266e-05/0.2421, allocations: 7.984 kB / 355.5 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001376/0.2422, allocations: 7.938 kB / 355.5 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.13e-05/0.2423, allocations: 0 / 355.5 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.439e-05/0.2423, allocations: 4 kB / 355.5 MB, free: 14.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001801/0.2425, allocations: 107.2 kB / 355.6 MB, free: 14.87 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2425, allocations: 0 / 355.6 MB, free: 14.87 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004583/0.243, allocations: 12 kB / 355.6 MB, free: 14.86 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 0.0002994/0.2433, allocations: 111.5 kB / 355.7 MB, free: 14.74 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000366/0.2437, allocations: 43.91 kB / 355.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/0.2437, allocations: 0 / 355.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.97e-05/0.2438, allocations: 11.94 kB / 355.8 MB, free: 14.69 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008706/0.2447, allocations: 27.64 kB / 355.8 MB, free: 14.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009721/0.2457, allocations: 240.4 kB / 356 MB, free: 14.38 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008129/0.2466, allocations: 0.6965 MB / 356.7 MB, free: 13.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.721e-05/0.2466, allocations: 11.44 kB / 356.7 MB, free: 13.65 MB / 302.1 MB Notification: Performance of SimCode: time 7.01e-07/0.2467, allocations: 0 / 356.7 MB, free: 13.65 MB / 302.1 MB Notification: Performance of Templates: time 0.004581/0.2513, allocations: 0.8589 MB / 357.6 MB, free: 12.8 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches