Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001504/0.001504, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00188/0.00188, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.51/1.51, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 59.91 kB / 306.9 MB, free: 0.625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1154, allocations: 50.53 MB / 357.5 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003748/0.1192, allocations: 1.598 MB / 359.1 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001131/0.1204, allocations: 0.5532 MB / 359.6 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001/0.1205, allocations: 4 kB / 359.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.785e-05/0.1206, allocations: 3.938 kB / 359.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001339/0.1207, allocations: 19.8 kB / 359.7 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004/0.1211, allocations: 67.8 kB / 359.7 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001057/0.1212, allocations: 47.86 kB / 359.8 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001031/0.1213, allocations: 23.95 kB / 359.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00014/0.1215, allocations: 31.84 kB / 359.8 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.915e-05/0.1216, allocations: 23.86 kB / 359.8 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.798e-05/0.1216, allocations: 11.94 kB / 359.9 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.897e-05/0.1217, allocations: 8 kB / 359.9 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.925e-05/0.1217, allocations: 11.98 kB / 359.9 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.995e-05/0.1218, allocations: 27.75 kB / 359.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001393/0.1219, allocations: 63.78 kB / 360 MB, free: 11.6 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.1219, allocations: 4 kB / 360 MB, free: 11.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.318e-06/0.1219, allocations: 0 / 360 MB, free: 11.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.122, allocations: 3.938 kB / 360 MB, free: 11.59 MB / 302.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.0005361/0.1225, allocations: 383.3 kB / 360.3 MB, free: 11.17 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.1226, allocations: 15.97 kB / 360.4 MB, free: 11.15 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001938/0.1228, allocations: 24.83 kB / 360.4 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002384/0.123, allocations: 188.1 kB / 360.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.442e-05/0.123, allocations: 8.375 kB / 360.6 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.321e-05/0.123, allocations: 4.375 kB / 360.6 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003132/0.1234, allocations: 138.1 kB / 360.7 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.1234, allocations: 4 kB / 360.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.156e-05/0.1234, allocations: 0 / 360.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.85e-06/0.1234, allocations: 0 / 360.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.88e-05/0.1235, allocations: 27.92 kB / 360.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004008/0.1239, allocations: 282.6 kB / 361 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002268/0.1241, allocations: 156.8 kB / 361.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.706e-05/0.1242, allocations: 38.69 kB / 361.2 MB, free: 10.13 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.087e-05/0.1243, allocations: 7.938 kB / 361.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.644e-05/0.1243, allocations: 34.56 kB / 361.3 MB, free: 10.08 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.163e-06/0.1243, allocations: 3.938 kB / 361.3 MB, free: 10.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002835/0.1246, allocations: 93.5 kB / 361.3 MB, free: 9.977 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.207e-05/0.1247, allocations: 115 kB / 361.5 MB, free: 9.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001471/0.1248, allocations: 144.2 kB / 361.6 MB, free: 9.691 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.69e-05/0.1248, allocations: 29.7 kB / 361.6 MB, free: 9.656 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.428e-05/0.1249, allocations: 88.05 kB / 361.7 MB, free: 9.566 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.201e-05/0.1249, allocations: 11.89 kB / 361.7 MB, free: 9.555 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.955e-05/0.125, allocations: 21.72 kB / 361.8 MB, free: 9.527 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.1251, allocations: 322.8 kB / 362.1 MB, free: 9.203 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.204e-05/0.1252, allocations: 12 kB / 362.1 MB, free: 9.191 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.026e-05/0.1252, allocations: 48.22 kB / 362.1 MB, free: 9.129 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001207/0.1254, allocations: 64.22 kB / 362.2 MB, free: 9.051 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1254, allocations: 0 / 362.2 MB, free: 9.051 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001645/0.1255, allocations: 89.5 kB / 362.3 MB, free: 8.957 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.1256, allocations: 8 kB / 362.3 MB, free: 8.949 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.007e-06/0.1256, allocations: 0 / 362.3 MB, free: 8.949 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.1256, allocations: 240 / 362.3 MB, free: 8.949 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.068e-05/0.1257, allocations: 11.94 kB / 362.3 MB, free: 8.938 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/0.1257, allocations: 4 kB / 362.3 MB, free: 8.934 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.918e-05/0.1257, allocations: 12.11 kB / 362.3 MB, free: 8.922 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.116e-06/0.1258, allocations: 0 / 362.3 MB, free: 8.922 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.0001028/0.1259, allocations: 129.8 kB / 362.4 MB, free: 8.785 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.166e-05/0.1259, allocations: 57.53 kB / 362.5 MB, free: 8.723 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.853e-05/0.126, allocations: 12.19 kB / 362.5 MB, free: 8.703 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.126, allocations: 7.984 kB / 362.5 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.126, allocations: 4 kB / 362.5 MB, free: 8.691 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.126, allocations: 0 / 362.5 MB, free: 8.691 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001974/0.1262, allocations: 177.5 kB / 362.7 MB, free: 8.469 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.1262, allocations: 8 kB / 362.7 MB, free: 8.461 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.987e-05/0.1263, allocations: 11.98 kB / 362.7 MB, free: 8.449 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.1263, allocations: 0 / 362.7 MB, free: 8.449 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.959e-06/0.1263, allocations: 4 kB / 362.7 MB, free: 8.445 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1263, allocations: 0 / 362.7 MB, free: 8.445 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.239e-06/0.1263, allocations: 4 kB / 362.7 MB, free: 8.441 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002096/0.1266, allocations: 193 kB / 362.9 MB, free: 8.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.399e-05/0.1266, allocations: 96.98 kB / 363 MB, free: 8.117 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.911e-05/0.1267, allocations: 4 kB / 363 MB, free: 8.113 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.898e-05/0.1267, allocations: 0 / 363 MB, free: 8.113 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.831e-05/0.1268, allocations: 4 kB / 363 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.113e-06/0.1268, allocations: 4 kB / 363 MB, free: 8.105 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.988e-05/0.1269, allocations: 113.7 kB / 363.1 MB, free: 7.996 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.1269, allocations: 0 / 363.1 MB, free: 7.996 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000243/0.1271, allocations: 8 kB / 363.1 MB, free: 7.988 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.0001247/0.1273, allocations: 99.25 kB / 363.2 MB, free: 7.883 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001835/0.1275, allocations: 55.84 kB / 363.3 MB, free: 7.828 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.1275, allocations: 3.938 kB / 363.3 MB, free: 7.824 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.553e-05/0.1275, allocations: 11.98 kB / 363.3 MB, free: 7.812 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003856/0.1279, allocations: 26.27 kB / 363.3 MB, free: 7.789 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004005/0.1283, allocations: 197.2 kB / 363.5 MB, free: 7.562 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002957/0.1286, allocations: 0.6924 MB / 364.2 MB, free: 6.844 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.292e-05/0.1287, allocations: 11.98 kB / 364.2 MB, free: 6.832 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.385e-05/0.1287, allocations: 11.44 kB / 364.2 MB, free: 6.82 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1287, allocations: 0 / 364.2 MB, free: 6.82 MB / 302.1 MB Notification: Performance of Templates: time 0.003136/0.1319, allocations: 0.6463 MB / 364.9 MB, free: 6.191 MB / 302.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches