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.0013/0.001301, allocations: 104.7 kB / 16.51 MB, free: 6.652 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.001227/0.001228, allocations: 195.1 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.486/1.486, allocations: 222.9 MB / 241.1 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.00115, allocations: 48.55 kB / 300 MB, free: 6.289 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.108, allocations: 49.44 MB / 349.4 MB, free: 4.836 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003327/0.1114, allocations: 1.651 MB / 351 MB, free: 3.168 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008912/0.1123, allocations: 494.7 kB / 351.5 MB, free: 2.68 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.485e-05/0.1124, allocations: 0 / 351.5 MB, free: 2.68 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.012e-05/0.1125, allocations: 3.938 kB / 351.5 MB, free: 2.676 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001188/0.1126, allocations: 7.938 kB / 351.5 MB, free: 2.668 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003288/0.113, allocations: 51.88 kB / 351.6 MB, free: 2.617 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.988e-05/0.1131, allocations: 43.8 kB / 351.6 MB, free: 2.574 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001069/0.1132, allocations: 24.17 kB / 351.7 MB, free: 2.551 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.188e-05/0.1133, allocations: 15.92 kB / 351.7 MB, free: 2.535 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.006e-05/0.1134, allocations: 27.84 kB / 351.7 MB, free: 2.508 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.81e-05/0.1134, allocations: 4 kB / 351.7 MB, free: 2.504 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.262e-05/0.1134, allocations: 0 / 351.7 MB, free: 2.504 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.652e-05/0.1135, allocations: 15.92 kB / 351.7 MB, free: 2.488 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.673e-05/0.1135, allocations: 27.81 kB / 351.7 MB, free: 2.461 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.993e-05/0.1136, allocations: 55.73 kB / 351.8 MB, free: 2.406 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.1136, allocations: 4 kB / 351.8 MB, free: 2.402 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.61e-07/0.1136, allocations: 0 / 351.8 MB, free: 2.402 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.108e-06/0.1137, allocations: 4 kB / 351.8 MB, free: 2.398 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.0004949/0.1142, allocations: 383.4 kB / 352.2 MB, free: 1.977 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.1142, allocations: 12.03 kB / 352.2 MB, free: 1.965 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.88e-05/0.1142, allocations: 8.844 kB / 352.2 MB, free: 1.957 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001997/0.1145, allocations: 196.1 kB / 352.4 MB, free: 1.727 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.029e-05/0.1145, allocations: 4.375 kB / 352.4 MB, free: 1.723 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.483e-05/0.1145, allocations: 12.36 kB / 352.4 MB, free: 1.711 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003065/0.1148, allocations: 137.9 kB / 352.5 MB, free: 1.555 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.1148, allocations: 0 / 352.5 MB, free: 1.555 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.307e-05/0.1148, allocations: 4 kB / 352.6 MB, free: 1.551 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.1149, allocations: 0 / 352.6 MB, free: 1.551 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.121e-05/0.115, allocations: 31.86 kB / 352.6 MB, free: 1.52 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003409/0.1153, allocations: 282.6 kB / 352.9 MB, free: 1.188 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002339/0.1156, allocations: 160.9 kB / 353 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.457e-05/0.1156, allocations: 38.62 kB / 353.1 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.175e-05/0.1157, allocations: 3.938 kB / 353.1 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.308e-05/0.1157, allocations: 34.56 kB / 353.1 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 1.142e-06/0.1157, allocations: 4 kB / 353.1 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002767/0.116, allocations: 93.5 kB / 353.2 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.439e-05/0.1161, allocations: 110.8 kB / 353.3 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001158/0.1162, allocations: 144.9 kB / 353.4 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.681e-05/0.1162, allocations: 25.7 kB / 353.5 MB, free: 488 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.835e-05/0.1163, allocations: 88.14 kB / 353.5 MB, free: 396 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.915e-05/0.1163, allocations: 12.16 kB / 353.6 MB, free: 384 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.937e-05/0.1163, allocations: 25.7 kB / 353.6 MB, free: 352 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.1165, allocations: 314.8 kB / 353.9 MB, free: 28 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.361e-05/0.1165, allocations: 15.98 kB / 353.9 MB, free: 12 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.462e-05/0.1166, allocations: 44.34 kB / 354 MB, free: 15.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001073/0.1167, allocations: 60.16 kB / 354 MB, free: 15.88 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.1167, allocations: 8 kB / 354 MB, free: 15.87 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001799/0.1169, allocations: 89.45 kB / 354.1 MB, free: 15.78 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.117, allocations: 10.47 kB / 354.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.117, allocations: 0 / 354.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.224e-05/0.117, allocations: 4 kB / 354.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.662e-05/0.1171, allocations: 11.98 kB / 354.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.1171, allocations: 0 / 354.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.824e-05/0.1171, allocations: 4 kB / 354.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.064e-05/0.1172, allocations: 4 kB / 354.1 MB, free: 15.75 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.84e-05/0.1172, allocations: 133.9 kB / 354.3 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.005e-05/0.1173, allocations: 57.58 kB / 354.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.709e-05/0.1174, allocations: 16.25 kB / 354.3 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.1174, allocations: 0 / 354.3 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.72e-06/0.1174, allocations: 0 / 354.3 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.1174, allocations: 7.938 kB / 354.3 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001875/0.1176, allocations: 181.5 kB / 354.5 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.1176, allocations: 0 / 354.5 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.006e-05/0.1177, allocations: 8 kB / 354.5 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.1177, allocations: 3.984 kB / 354.5 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.042e-05/0.1177, allocations: 4 kB / 354.5 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.352e-06/0.1177, allocations: 11.88 kB / 354.6 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.1177, allocations: 0 / 354.6 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001863/0.1179, allocations: 185.1 kB / 354.7 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.76e-05/0.118, allocations: 100.9 kB / 354.8 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.762e-05/0.118, allocations: 0 / 354.8 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.39e-05/0.1181, allocations: 4 kB / 354.8 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.106e-05/0.1181, allocations: 7.984 kB / 354.8 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.017e-06/0.1181, allocations: 8 kB / 354.9 MB, free: 14.92 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.014e-05/0.1182, allocations: 103.3 kB / 355 MB, free: 14.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1182, allocations: 0 / 355 MB, free: 14.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002438/0.1185, allocations: 8 kB / 355 MB, free: 14.81 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.0001128/0.1186, allocations: 111.1 kB / 355.1 MB, free: 14.69 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001588/0.1188, allocations: 40.17 kB / 355.1 MB, free: 14.65 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1188, allocations: 4.062 kB / 355.1 MB, free: 14.65 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.631e-05/0.1188, allocations: 15.98 kB / 355.1 MB, free: 14.63 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003899/0.1192, allocations: 24.02 kB / 355.2 MB, free: 14.61 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003851/0.1196, allocations: 218.8 kB / 355.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002373/0.1199, allocations: 0.7004 MB / 356.1 MB, free: 13.63 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.392e-05/0.1199, allocations: 0 / 356.1 MB, free: 13.63 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.897e-05/0.1199, allocations: 11.44 kB / 356.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1199, allocations: 0 / 356.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of Templates: time 0.002719/0.1227, allocations: 0.5809 MB / 356.7 MB, free: 13.05 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins/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