Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001212/0.001212, allocations: 202.1 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.495/1.495, allocations: 229.5 MB / 247.7 MB, free: 6.336 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000841/0.000841, allocations: 98.08 kB / 299.8 MB, free: 5.352 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003342/0.000334, allocations: 8 kB / 360.6 MB, free: 8.477 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3369/0.3373, allocations: 51.42 MB / 412.1 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002383/0.3398, allocations: 1.301 MB / 413.4 MB, free: 24.59 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001126/0.3409, allocations: 0.7184 MB / 414.1 MB, free: 23.81 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001243/0.3411, allocations: 0.625 kB / 414.1 MB, free: 23.81 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.819e-05/0.3411, allocations: 13.91 kB / 414.1 MB, free: 23.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001634/0.3413, allocations: 7.922 kB / 414.1 MB, free: 23.79 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003634/0.3417, allocations: 47.84 kB / 414.2 MB, free: 23.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001059/0.3418, allocations: 47.84 kB / 414.2 MB, free: 23.7 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001377/0.3419, allocations: 18.25 kB / 414.2 MB, free: 23.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001448/0.3421, allocations: 27.86 kB / 414.2 MB, free: 23.66 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.337e-05/0.3422, allocations: 19.86 kB / 414.3 MB, free: 23.64 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.573e-05/0.3422, allocations: 0 / 414.3 MB, free: 23.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.514e-05/0.3423, allocations: 11.28 kB / 414.3 MB, free: 23.63 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.703e-05/0.3423, allocations: 15.91 kB / 414.3 MB, free: 23.61 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.641e-05/0.3424, allocations: 57.45 kB / 414.3 MB, free: 23.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001378/0.3425, allocations: 59.72 kB / 414.4 MB, free: 23.49 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.618e-06/0.3425, allocations: 0 / 414.4 MB, free: 23.49 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.795e-06/0.3426, allocations: 0 / 414.4 MB, free: 23.49 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.3426, allocations: 0 / 414.4 MB, free: 23.49 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.0005577/0.3431, allocations: 376.8 kB / 414.8 MB, free: 23.08 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.396e-05/0.3432, allocations: 8.031 kB / 414.8 MB, free: 23.07 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001675/0.3434, allocations: 16.84 kB / 414.8 MB, free: 23.05 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002628/0.3436, allocations: 196 kB / 415 MB, free: 22.82 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.63e-05/0.3437, allocations: 8.312 kB / 415 MB, free: 22.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.466e-05/0.3437, allocations: 4.375 kB / 415 MB, free: 22.81 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003955/0.3441, allocations: 142 kB / 415.1 MB, free: 22.65 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.916e-05/0.3441, allocations: 0 / 415.1 MB, free: 22.65 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.424e-05/0.3441, allocations: 0 / 415.1 MB, free: 22.65 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.3442, allocations: 4 kB / 415.1 MB, free: 22.65 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.469e-05/0.3443, allocations: 31.92 kB / 415.2 MB, free: 22.62 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004471/0.3447, allocations: 278.6 kB / 415.4 MB, free: 22.29 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002531/0.345, allocations: 164.9 kB / 415.6 MB, free: 22.08 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001109/0.3451, allocations: 38.62 kB / 415.6 MB, free: 22.04 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.964e-05/0.3451, allocations: 0 / 415.6 MB, free: 22.04 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.763e-05/0.3452, allocations: 42.48 kB / 415.7 MB, free: 21.98 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 8.61e-07/0.3452, allocations: 4 kB / 415.7 MB, free: 21.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003243/0.3455, allocations: 97.52 kB / 415.8 MB, free: 21.88 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.727e-05/0.3456, allocations: 102.8 kB / 415.9 MB, free: 21.75 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001552/0.3458, allocations: 143.5 kB / 416 MB, free: 21.6 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.151e-05/0.3458, allocations: 29.95 kB / 416.1 MB, free: 21.57 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.907e-05/0.3459, allocations: 96.02 kB / 416.1 MB, free: 21.47 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.97e-05/0.3459, allocations: 11.89 kB / 416.2 MB, free: 21.46 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.35e-06/0.3459, allocations: 0 / 416.2 MB, free: 21.46 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.346, allocations: 318.8 kB / 416.5 MB, free: 21.14 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.049e-05/0.3461, allocations: 19.98 kB / 416.5 MB, free: 21.12 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.395e-05/0.3462, allocations: 48.28 kB / 416.5 MB, free: 21.05 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.726e-05/0.3463, allocations: 64.39 kB / 416.6 MB, free: 20.98 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.3463, allocations: 8 kB / 416.6 MB, free: 20.97 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001444/0.3464, allocations: 89.45 kB / 416.7 MB, free: 20.88 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/0.3464, allocations: 8 kB / 416.7 MB, free: 20.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.3465, allocations: 0 / 416.7 MB, free: 20.87 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.3465, allocations: 11.94 kB / 416.7 MB, free: 20.86 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.972e-05/0.3466, allocations: 11.98 kB / 416.7 MB, free: 20.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.3466, allocations: 0 / 416.7 MB, free: 20.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.452e-05/0.3466, allocations: 8.125 kB / 416.7 MB, free: 20.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.3466, allocations: 4 kB / 416.7 MB, free: 20.83 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.37e-05/0.3467, allocations: 137.6 kB / 416.9 MB, free: 20.69 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.256e-05/0.3468, allocations: 49.59 kB / 416.9 MB, free: 20.63 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.448e-05/0.3468, allocations: 12.25 kB / 416.9 MB, free: 20.61 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.3468, allocations: 0 / 416.9 MB, free: 20.61 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.3468, allocations: 4 kB / 416.9 MB, free: 20.61 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.3469, allocations: 0 / 416.9 MB, free: 20.61 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001569/0.347, allocations: 177.6 kB / 417.1 MB, free: 20.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.347, allocations: 4 kB / 417.1 MB, free: 20.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.169e-05/0.3471, allocations: 8 kB / 417.1 MB, free: 20.37 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.3471, allocations: 3.984 kB / 417.1 MB, free: 20.37 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.466e-06/0.3471, allocations: 4 kB / 417.1 MB, free: 20.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.3471, allocations: 0 / 417.1 MB, free: 20.36 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.3471, allocations: 3.938 kB / 417.1 MB, free: 20.36 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001739/0.3473, allocations: 197.1 kB / 417.3 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.294e-05/0.3474, allocations: 93 kB / 417.4 MB, free: 20.04 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.823e-05/0.3474, allocations: 0 / 417.4 MB, free: 20.04 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.642e-05/0.3475, allocations: 4 kB / 417.4 MB, free: 20.03 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.744e-05/0.3475, allocations: 7.984 kB / 417.4 MB, free: 20.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.429e-06/0.3475, allocations: 0 / 417.4 MB, free: 20.02 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.124e-05/0.3476, allocations: 109.8 kB / 417.5 MB, free: 19.92 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3476, allocations: 0 / 417.5 MB, free: 19.92 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002113/0.3478, allocations: 12 kB / 417.5 MB, free: 19.91 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 (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.0001033/0.3479, allocations: 119 kB / 417.7 MB, free: 19.78 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001479/0.348, allocations: 43.92 kB / 417.7 MB, free: 19.74 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.798e-06/0.3481, allocations: 4.25 kB / 417.7 MB, free: 19.73 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.177e-05/0.3481, allocations: 15.98 kB / 417.7 MB, free: 19.72 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003764/0.3485, allocations: 24.34 kB / 417.8 MB, free: 19.7 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002949/0.3488, allocations: 227.2 kB / 418 MB, free: 19.43 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002317/0.349, allocations: 0.6965 MB / 418.7 MB, free: 18.71 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.387e-05/0.3491, allocations: 11.8 kB / 418.7 MB, free: 18.7 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.189e-05/0.3491, allocations: 11.44 kB / 418.7 MB, free: 18.69 MB / 298.7 MB Notification: Performance of SimCode: time 4.01e-07/0.3491, allocations: 0 / 418.7 MB, free: 18.69 MB / 298.7 MB Notification: Performance of Templates: time 0.002674/0.3518, allocations: 0.5733 MB / 419.3 MB, free: 18.12 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches