Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007458/0.0007458, allocations: 99.41 kB / 16.04 MB, free: 5.168 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08075/0.08075, allocations: 12.63 MB / 29.41 MB, free: 5.652 MB / 24.77 MB Notification: Performance of FrontEnd - loaded program: time 0.000164/0.000164, allocations: 4 kB / 40.28 MB, free: 424 kB / 24.77 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.005399/0.005578, allocations: 2.828 MB / 43.11 MB, free: 5.863 MB / 33.03 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 1.544/1.549, allocations: 277.6 MB / 320.7 MB, free: 12.46 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007764/1.55, allocations: 452.8 kB / 321.1 MB, free: 12.02 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.712e-05/1.55, allocations: 4 kB / 321.1 MB, free: 12.01 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.809e-05/1.55, allocations: 11.86 kB / 321.2 MB, free: 12 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001328/1.551, allocations: 5.312 kB / 321.2 MB, free: 12 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003074/1.551, allocations: 51.88 kB / 321.2 MB, free: 11.95 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.697e-05/1.551, allocations: 39.92 kB / 321.3 MB, free: 11.91 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001306/1.551, allocations: 29.84 kB / 321.3 MB, free: 11.88 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.197e-05/1.551, allocations: 19.86 kB / 321.3 MB, free: 11.86 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.063e-05/1.551, allocations: 21.58 kB / 321.3 MB, free: 11.84 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.595e-05/1.551, allocations: 0 / 321.3 MB, free: 11.84 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.423e-05/1.551, allocations: 4 kB / 321.3 MB, free: 11.84 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.454e-05/1.551, allocations: 15.92 kB / 321.3 MB, free: 11.82 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.482e-05/1.551, allocations: 53.94 kB / 321.4 MB, free: 11.76 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001117/1.552, allocations: 59.61 kB / 321.5 MB, free: 11.71 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/1.552, allocations: 0 / 321.5 MB, free: 11.71 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.262e-06/1.552, allocations: 0 / 321.5 MB, free: 11.71 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.869e-06/1.552, allocations: 0.7812 kB / 321.5 MB, free: 11.71 MB / 250.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.000505/1.552, allocations: 364.7 kB / 321.8 MB, free: 11.3 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/1.552, allocations: 8.031 kB / 321.8 MB, free: 11.3 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.991e-05/1.552, allocations: 13.38 kB / 321.8 MB, free: 11.29 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002179/1.552, allocations: 205.1 kB / 322 MB, free: 11.05 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.191e-05/1.552, allocations: 1.312 kB / 322 MB, free: 11.05 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.185e-05/1.552, allocations: 8.312 kB / 322 MB, free: 11.04 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003044/1.553, allocations: 143.8 kB / 322.2 MB, free: 10.88 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/1.553, allocations: 0 / 322.2 MB, free: 10.88 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.909e-06/1.553, allocations: 0 / 322.2 MB, free: 10.88 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/1.553, allocations: 5.469 kB / 322.2 MB, free: 10.88 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001094/1.553, allocations: 27.92 kB / 322.2 MB, free: 10.85 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003663/1.553, allocations: 286.2 kB / 322.5 MB, free: 10.52 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002213/1.553, allocations: 158.2 kB / 322.6 MB, free: 10.32 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.915e-05/1.554, allocations: 43.88 kB / 322.7 MB, free: 10.27 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.345e-05/1.554, allocations: 5.375 kB / 322.7 MB, free: 10.27 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/1.554, allocations: 35.5 kB / 322.7 MB, free: 10.22 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 1.032e-06/1.554, allocations: 0 / 322.7 MB, free: 10.22 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002827/1.554, allocations: 103.6 kB / 322.8 MB, free: 10.12 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.687e-05/1.554, allocations: 108.7 kB / 322.9 MB, free: 9.988 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001189/1.554, allocations: 147.7 kB / 323.1 MB, free: 9.832 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.132e-05/1.554, allocations: 25.7 kB / 323.1 MB, free: 9.801 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.139e-05/1.554, allocations: 85.92 kB / 323.2 MB, free: 9.715 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.782e-05/1.554, allocations: 11.84 kB / 323.2 MB, free: 9.703 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.891e-06/1.554, allocations: 4 kB / 323.2 MB, free: 9.699 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.938e-05/1.554, allocations: 318.8 kB / 323.5 MB, free: 9.379 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.988e-05/1.554, allocations: 18.22 kB / 323.5 MB, free: 9.363 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.619e-05/1.554, allocations: 44.28 kB / 323.6 MB, free: 9.305 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001162/1.555, allocations: 75.66 kB / 323.7 MB, free: 9.219 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.672e-06/1.555, allocations: 6.094 kB / 323.7 MB, free: 9.215 MB / 250.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001506/1.555, allocations: 89.39 kB / 323.7 MB, free: 9.121 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/1.555, allocations: 8.594 kB / 323.8 MB, free: 9.113 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/1.555, allocations: 2.469 kB / 323.8 MB, free: 9.113 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/1.555, allocations: 4 kB / 323.8 MB, free: 9.109 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.187e-05/1.555, allocations: 11.98 kB / 323.8 MB, free: 9.098 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/1.555, allocations: 0 / 323.8 MB, free: 9.098 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.586e-05/1.555, allocations: 4 kB / 323.8 MB, free: 9.094 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.262e-05/1.555, allocations: 8.562 kB / 323.8 MB, free: 9.086 MB / 250.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 0.0001025/1.555, allocations: 130.5 kB / 323.9 MB, free: 8.949 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.386e-05/1.555, allocations: 49.59 kB / 324 MB, free: 8.895 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.075e-05/1.555, allocations: 17.17 kB / 324 MB, free: 8.871 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/1.555, allocations: 0 / 324 MB, free: 8.871 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/1.555, allocations: 5.406 kB / 324 MB, free: 8.867 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/1.555, allocations: 0 / 324 MB, free: 8.867 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001779/1.555, allocations: 181.5 kB / 324.2 MB, free: 8.641 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/1.555, allocations: 7.984 kB / 324.2 MB, free: 8.633 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.68e-05/1.555, allocations: 12.75 kB / 324.2 MB, free: 8.621 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/1.556, allocations: 0 / 324.2 MB, free: 8.621 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.725e-06/1.556, allocations: 4.719 kB / 324.2 MB, free: 8.617 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/1.556, allocations: 3.938 kB / 324.2 MB, free: 8.613 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/1.556, allocations: 2 kB / 324.2 MB, free: 8.613 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001998/1.556, allocations: 191 kB / 324.4 MB, free: 8.406 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.82e-05/1.556, allocations: 96.98 kB / 324.5 MB, free: 8.293 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.633e-05/1.556, allocations: 1.031 kB / 324.5 MB, free: 8.293 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.863e-05/1.556, allocations: 4 kB / 324.5 MB, free: 8.289 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.398e-05/1.556, allocations: 6.344 kB / 324.5 MB, free: 8.285 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/1.556, allocations: 4 kB / 324.5 MB, free: 8.281 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.988e-05/1.556, allocations: 109.7 kB / 324.6 MB, free: 8.176 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.2e-07/1.556, allocations: 0 / 324.6 MB, free: 8.176 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002017/1.556, allocations: 8 kB / 324.6 MB, free: 8.168 MB / 250.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.0001083/1.556, allocations: 107.8 kB / 324.7 MB, free: 8.055 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.00015/1.557, allocations: 49.66 kB / 324.8 MB, free: 8.008 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/1.557, allocations: 0.75 kB / 324.8 MB, free: 8.008 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.264e-05/1.557, allocations: 23.58 kB / 324.8 MB, free: 7.988 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003645/1.557, allocations: 20.3 kB / 324.8 MB, free: 7.969 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003517/1.557, allocations: 228.8 kB / 325 MB, free: 7.715 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002567/1.558, allocations: 0.6887 MB / 325.7 MB, free: 7 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.172e-05/1.558, allocations: 8.828 kB / 325.7 MB, free: 6.992 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.823e-05/1.558, allocations: 16.38 kB / 325.7 MB, free: 6.977 MB / 250.7 MB Notification: Performance of SimCode: time 2.8e-07/1.558, allocations: 0 / 325.7 MB, free: 6.977 MB / 250.7 MB Notification: Performance of Templates: time 0.002453/1.56, allocations: 0.5749 MB / 326.3 MB, free: 6.422 MB / 250.7 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