Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00163/0.00163, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001727/0.001727, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.556/1.556, allocations: 227.7 MB / 247.7 MB, free: 10.3 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002052/0.002052, allocations: 68.06 kB / 307.9 MB, free: 500 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1251, allocations: 50.54 MB / 358.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003381/0.1286, allocations: 1.595 MB / 360 MB, free: 12.33 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001151/0.1297, allocations: 0.557 MB / 360.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.678e-05/0.1298, allocations: 0 / 360.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.376e-05/0.1299, allocations: 7.875 kB / 360.6 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001432/0.1301, allocations: 15.92 kB / 360.6 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003791/0.1305, allocations: 67.8 kB / 360.7 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000126/0.1306, allocations: 47.8 kB / 360.7 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001154/0.1307, allocations: 19.97 kB / 360.7 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001329/0.1309, allocations: 39.78 kB / 360.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.443e-05/0.1309, allocations: 19.92 kB / 360.8 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.063e-05/0.131, allocations: 4 kB / 360.8 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.477e-05/0.131, allocations: 7.938 kB / 360.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.707e-05/0.1311, allocations: 19.98 kB / 360.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.358e-05/0.1311, allocations: 31.75 kB / 360.9 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001587/0.1313, allocations: 59.78 kB / 360.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.1313, allocations: 0 / 360.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1313, allocations: 0 / 360.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.992e-06/0.1313, allocations: 0 / 360.9 MB, free: 11.43 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.0005961/0.1319, allocations: 393.7 kB / 361.3 MB, free: 11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.132, allocations: 12.03 kB / 361.3 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001705/0.1322, allocations: 16.83 kB / 361.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002356/0.1324, allocations: 204 kB / 361.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.316e-05/0.1324, allocations: 384 / 361.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.937e-05/0.1324, allocations: 8.375 kB / 361.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003463/0.1328, allocations: 130.2 kB / 361.7 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.1328, allocations: 4 kB / 361.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.189e-05/0.1328, allocations: 4 kB / 361.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.406e-06/0.1329, allocations: 0 / 361.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.709e-05/0.133, allocations: 27.92 kB / 361.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004763/0.1334, allocations: 282.6 kB / 362 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002835/0.1337, allocations: 152.8 kB / 362.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.389e-05/0.1338, allocations: 46.67 kB / 362.2 MB, free: 9.961 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.147e-05/0.1339, allocations: 7.922 kB / 362.2 MB, free: 9.953 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.089e-05/0.1339, allocations: 34.56 kB / 362.2 MB, free: 9.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.283e-06/0.1339, allocations: 7.938 kB / 362.2 MB, free: 9.902 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003278/0.1343, allocations: 93.5 kB / 362.3 MB, free: 9.805 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.366e-05/0.1344, allocations: 106.8 kB / 362.4 MB, free: 9.676 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001464/0.1345, allocations: 152.5 kB / 362.6 MB, free: 9.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.076e-05/0.1346, allocations: 29.7 kB / 362.6 MB, free: 9.484 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.841e-05/0.1346, allocations: 96.05 kB / 362.7 MB, free: 9.387 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.141e-05/0.1347, allocations: 7.891 kB / 362.7 MB, free: 9.379 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.831e-05/0.1347, allocations: 21.72 kB / 362.7 MB, free: 9.352 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.1349, allocations: 322.8 kB / 363 MB, free: 9.027 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.503e-05/0.1349, allocations: 12 kB / 363 MB, free: 9.016 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.721e-05/0.135, allocations: 48.28 kB / 363.1 MB, free: 8.953 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001262/0.1352, allocations: 60.22 kB / 363.2 MB, free: 8.879 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1352, allocations: 0 / 363.2 MB, free: 8.879 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001876/0.1354, allocations: 97.44 kB / 363.3 MB, free: 8.777 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.1354, allocations: 4 kB / 363.3 MB, free: 8.773 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.1354, allocations: 0 / 363.3 MB, free: 8.773 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.1354, allocations: 4 kB / 363.3 MB, free: 8.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.375e-05/0.1355, allocations: 8 kB / 363.3 MB, free: 8.762 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.1355, allocations: 0 / 363.3 MB, free: 8.762 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.132e-05/0.1356, allocations: 7.984 kB / 363.3 MB, free: 8.754 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.098e-05/0.1356, allocations: 4 kB / 363.3 MB, free: 8.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 0.0001083/0.1357, allocations: 125.8 kB / 363.4 MB, free: 8.617 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001221/0.1358, allocations: 57.59 kB / 363.5 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.224e-05/0.1359, allocations: 12.25 kB / 363.5 MB, free: 8.535 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-06/0.1359, allocations: 3.984 kB / 363.5 MB, free: 8.531 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/0.1359, allocations: 8 kB / 363.5 MB, free: 8.523 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.1359, allocations: 0 / 363.5 MB, free: 8.523 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002166/0.1361, allocations: 177.5 kB / 363.7 MB, free: 8.301 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.1361, allocations: 0 / 363.7 MB, free: 8.301 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.044e-05/0.1362, allocations: 11.98 kB / 363.7 MB, free: 8.289 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.1362, allocations: 0 / 363.7 MB, free: 8.289 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.909e-06/0.1362, allocations: 8 kB / 363.7 MB, free: 8.281 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.1362, allocations: 0 / 363.7 MB, free: 8.281 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1362, allocations: 3.938 kB / 363.7 MB, free: 8.277 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002357/0.1365, allocations: 189.4 kB / 363.9 MB, free: 8.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.029e-05/0.1366, allocations: 89 kB / 363.9 MB, free: 7.965 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.684e-05/0.1366, allocations: 19.91 kB / 364 MB, free: 7.945 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.326e-05/0.1367, allocations: 4 kB / 364 MB, free: 7.941 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.779e-05/0.1367, allocations: 0 / 364 MB, free: 7.941 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.706e-06/0.1367, allocations: 4 kB / 364 MB, free: 7.938 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.307e-05/0.1368, allocations: 107.2 kB / 364.1 MB, free: 7.832 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1369, allocations: 3.938 kB / 364.1 MB, free: 7.828 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002453/0.1371, allocations: 12 kB / 364.1 MB, free: 7.816 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.0001233/0.1372, allocations: 103.2 kB / 364.2 MB, free: 7.707 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001844/0.1374, allocations: 55.84 kB / 364.3 MB, free: 7.652 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.1375, allocations: 0 / 364.3 MB, free: 7.652 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.352e-05/0.1375, allocations: 15.98 kB / 364.3 MB, free: 7.637 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004176/0.1379, allocations: 19.97 kB / 364.3 MB, free: 7.617 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004374/0.1384, allocations: 223 kB / 364.5 MB, free: 7.359 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003748/0.1388, allocations: 0.6963 MB / 365.2 MB, free: 6.637 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.729e-05/0.1388, allocations: 15.42 kB / 365.2 MB, free: 6.621 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1388, allocations: 0 / 365.2 MB, free: 6.621 MB / 302.1 MB Notification: Performance of Templates: time 0.002909/0.1417, allocations: 0.8842 MB / 366.1 MB, free: 5.746 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches