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.001489/0.001489, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001679/0.00168, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.49/1.49, allocations: 227.4 MB / 246.9 MB, free: 9.039 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 62 kB / 306.9 MB, free: 0.8008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09562/0.097, allocations: 50.54 MB / 357.4 MB, free: 14.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003215/0.1003, allocations: 1.656 MB / 359.1 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009766/0.1013, allocations: 0.5493 MB / 359.6 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.742e-05/0.1014, allocations: 0 / 359.6 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.364e-05/0.1015, allocations: 7.922 kB / 359.7 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001292/0.1016, allocations: 11.92 kB / 359.7 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00032/0.1019, allocations: 59.83 kB / 359.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.669e-05/0.1021, allocations: 43.86 kB / 359.8 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.31e-05/0.1022, allocations: 19.97 kB / 359.8 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001202/0.1023, allocations: 35.84 kB / 359.8 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.637e-05/0.1023, allocations: 15.92 kB / 359.8 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.721e-05/0.1024, allocations: 7.938 kB / 359.8 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.59e-05/0.1024, allocations: 4 kB / 359.9 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.843e-05/0.1025, allocations: 11.98 kB / 359.9 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.344e-05/0.1025, allocations: 39.73 kB / 359.9 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001006/0.1026, allocations: 39.94 kB / 359.9 MB, free: 11.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1026, allocations: 0 / 359.9 MB, free: 11.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.81e-07/0.1026, allocations: 0 / 359.9 MB, free: 11.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.1027, allocations: 0 / 359.9 MB, free: 11.75 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.0004893/0.1031, allocations: 391.3 kB / 360.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.1032, allocations: 8.031 kB / 360.3 MB, free: 11.31 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001603/0.1034, allocations: 20.83 kB / 360.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000183/0.1035, allocations: 200 kB / 360.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.169e-05/0.1036, allocations: 8.375 kB / 360.6 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.296e-05/0.1036, allocations: 8.312 kB / 360.6 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002845/0.1039, allocations: 138.2 kB / 360.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.1039, allocations: 0 / 360.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.058e-05/0.1039, allocations: 4 kB / 360.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.1039, allocations: 0 / 360.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.647e-05/0.104, allocations: 27.92 kB / 360.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003202/0.1043, allocations: 278.6 kB / 361 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002079/0.1046, allocations: 160.8 kB / 361.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.799e-05/0.1046, allocations: 42.62 kB / 361.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.294e-05/0.1047, allocations: 7.984 kB / 361.2 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.939e-05/0.1047, allocations: 34.56 kB / 361.2 MB, free: 10.22 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.193e-06/0.1047, allocations: 0 / 361.2 MB, free: 10.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002758/0.105, allocations: 97.5 kB / 361.3 MB, free: 10.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.185e-05/0.1051, allocations: 106.8 kB / 361.4 MB, free: 9.988 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001146/0.1052, allocations: 148.4 kB / 361.6 MB, free: 9.836 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.372e-05/0.1052, allocations: 25.95 kB / 361.6 MB, free: 9.805 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.365e-05/0.1053, allocations: 96.05 kB / 361.7 MB, free: 9.707 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.883e-05/0.1053, allocations: 7.906 kB / 361.7 MB, free: 9.699 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.834e-05/0.1053, allocations: 21.7 kB / 361.7 MB, free: 9.672 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.768e-05/0.1054, allocations: 318.8 kB / 362 MB, free: 9.352 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.292e-05/0.1055, allocations: 15.98 kB / 362.1 MB, free: 9.336 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.051e-05/0.1056, allocations: 44.28 kB / 362.1 MB, free: 9.277 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001132/0.1057, allocations: 64.22 kB / 362.2 MB, free: 9.199 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1057, allocations: 0 / 362.2 MB, free: 9.199 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001611/0.1058, allocations: 93.45 kB / 362.3 MB, free: 9.102 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.1059, allocations: 4 kB / 362.3 MB, free: 9.098 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.032e-06/0.1059, allocations: 3.984 kB / 362.3 MB, free: 9.094 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.174e-05/0.1059, allocations: 4 kB / 362.3 MB, free: 9.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.079e-05/0.106, allocations: 8 kB / 362.3 MB, free: 9.082 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/0.106, allocations: 3.938 kB / 362.3 MB, free: 9.078 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.179e-05/0.106, allocations: 7.984 kB / 362.3 MB, free: 9.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.147e-05/0.1061, allocations: 8 kB / 362.3 MB, free: 9.062 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.87e-05/0.1062, allocations: 125.8 kB / 362.4 MB, free: 8.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.998e-05/0.1062, allocations: 53.83 kB / 362.5 MB, free: 8.871 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.879e-05/0.1063, allocations: 16.28 kB / 362.5 MB, free: 8.848 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.1063, allocations: 0 / 362.5 MB, free: 8.848 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.1063, allocations: 0 / 362.5 MB, free: 8.848 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.1063, allocations: 4 kB / 362.5 MB, free: 8.844 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001789/0.1065, allocations: 185.5 kB / 362.7 MB, free: 8.613 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.1065, allocations: 0 / 362.7 MB, free: 8.613 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.882e-05/0.1066, allocations: 15.92 kB / 362.7 MB, free: 8.598 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.1066, allocations: 0 / 362.7 MB, free: 8.598 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.995e-06/0.1066, allocations: 0 / 362.7 MB, free: 8.598 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.988e-06/0.1066, allocations: 8 kB / 362.7 MB, free: 8.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.1066, allocations: 3.938 kB / 362.7 MB, free: 8.586 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001936/0.1068, allocations: 185.1 kB / 362.9 MB, free: 8.383 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.34e-05/0.1069, allocations: 97 kB / 363 MB, free: 8.27 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.811e-05/0.1069, allocations: 0 / 363 MB, free: 8.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.421e-05/0.107, allocations: 15.98 kB / 363 MB, free: 8.254 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.528e-05/0.107, allocations: 0 / 363 MB, free: 8.254 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.885e-06/0.107, allocations: 4 kB / 363 MB, free: 8.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.591e-05/0.1071, allocations: 111.2 kB / 363.1 MB, free: 8.141 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1071, allocations: 0 / 363.1 MB, free: 8.141 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002445/0.1074, allocations: 8 kB / 363.1 MB, free: 8.133 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.0001057/0.1075, allocations: 106.8 kB / 363.2 MB, free: 8.023 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001512/0.1076, allocations: 47.84 kB / 363.3 MB, free: 7.977 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.1076, allocations: 4 kB / 363.3 MB, free: 7.973 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.022e-05/0.1077, allocations: 8 kB / 363.3 MB, free: 7.965 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003495/0.108, allocations: 31.95 kB / 363.3 MB, free: 7.934 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000379/0.1084, allocations: 236.8 kB / 363.5 MB, free: 7.66 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002467/0.1087, allocations: 0.6965 MB / 364.2 MB, free: 6.938 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.32e-05/0.1087, allocations: 15.42 kB / 364.2 MB, free: 6.922 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.1087, allocations: 0 / 364.2 MB, free: 6.922 MB / 302.1 MB Notification: Performance of Templates: time 0.002183/0.1109, allocations: 0.8778 MB / 365.1 MB, free: 6.047 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins1/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