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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001631/0.001631, allocations: 72.06 kB / 21.24 MB, free: 400 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001812/0.001812, allocations: 156.5 kB / 24.48 MB, free: 3.461 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.506/1.506, allocations: 173.4 MB / 201.1 MB, free: 12.69 MB / 190.1 MB " [Timeout remaining time 178] 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=5010,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=5010,variableFilter="time|sample1.y|clockToSquareWave.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001572/0.001572, allocations: 52.52 kB / 319.4 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09408/0.09565, allocations: 52.16 MB / 371.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003038/0.09869, allocations: 1.599 MB / 373.2 MB, free: 5.734 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009311/0.09962, allocations: 466.8 kB / 373.6 MB, free: 5.273 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.053e-05/0.0997, allocations: 7.938 kB / 373.6 MB, free: 5.266 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.583e-05/0.09974, allocations: 3.938 kB / 373.6 MB, free: 5.262 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001225/0.09987, allocations: 7.938 kB / 373.7 MB, free: 5.254 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002815/0.1001, allocations: 55.81 kB / 373.7 MB, free: 5.199 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001192/0.1003, allocations: 51.8 kB / 373.8 MB, free: 5.148 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.799e-05/0.1004, allocations: 12.16 kB / 373.8 MB, free: 5.137 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.391e-05/0.1004, allocations: 23.92 kB / 373.8 MB, free: 5.113 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.111e-05/0.1005, allocations: 23.8 kB / 373.8 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.897e-05/0.1005, allocations: 4 kB / 373.8 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.261e-05/0.1005, allocations: 0 / 373.8 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.579e-05/0.1006, allocations: 27.91 kB / 373.8 MB, free: 5.059 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.22e-05/0.1006, allocations: 15.88 kB / 373.9 MB, free: 5.043 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001367/0.1008, allocations: 67.61 kB / 373.9 MB, free: 4.977 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.1008, allocations: 0 / 373.9 MB, free: 4.977 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.1008, allocations: 0 / 373.9 MB, free: 4.977 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.728e-06/0.1008, allocations: 0 / 373.9 MB, free: 4.977 MB / 334.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.0005103/0.1013, allocations: 306 kB / 374.2 MB, free: 4.648 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.1013, allocations: 12.92 kB / 374.2 MB, free: 4.637 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.459e-05/0.1014, allocations: 8.891 kB / 374.2 MB, free: 4.629 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002584/0.1016, allocations: 146.2 kB / 374.4 MB, free: 4.461 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.053e-06/0.1016, allocations: 384 / 374.4 MB, free: 4.461 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.617e-05/0.1016, allocations: 12.38 kB / 374.4 MB, free: 4.449 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003065/0.1019, allocations: 130 kB / 374.5 MB, free: 4.301 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.102, allocations: 0 / 374.5 MB, free: 4.301 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.438e-05/0.102, allocations: 7.984 kB / 374.5 MB, free: 4.293 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.102, allocations: 0 / 374.5 MB, free: 4.293 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.966e-05/0.1021, allocations: 27.92 kB / 374.6 MB, free: 4.266 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003218/0.1024, allocations: 218.4 kB / 374.8 MB, free: 4.016 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002079/0.1026, allocations: 83.72 kB / 374.9 MB, free: 3.906 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.354e-05/0.1027, allocations: 42.61 kB / 374.9 MB, free: 3.855 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.793e-05/0.1027, allocations: 3.938 kB / 374.9 MB, free: 3.852 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.513e-05/0.1027, allocations: 50.47 kB / 375 MB, free: 3.793 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.112e-06/0.1027, allocations: 0 / 375 MB, free: 3.793 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.000297/0.103, allocations: 89.78 kB / 375 MB, free: 3.699 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.769e-05/0.1031, allocations: 114.8 kB / 375.2 MB, free: 3.562 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001456/0.1033, allocations: 137.8 kB / 375.3 MB, free: 3.418 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.633e-05/0.1033, allocations: 25.7 kB / 375.3 MB, free: 3.387 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.822e-05/0.1033, allocations: 92.14 kB / 375.4 MB, free: 3.293 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.782e-05/0.1033, allocations: 7.938 kB / 375.4 MB, free: 3.285 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.118e-05/0.1034, allocations: 25.67 kB / 375.4 MB, free: 3.254 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.1035, allocations: 318.8 kB / 375.7 MB, free: 2.934 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.36e-05/0.1036, allocations: 23.94 kB / 375.8 MB, free: 2.91 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.922e-05/0.1037, allocations: 48.2 kB / 375.8 MB, free: 2.848 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001223/0.1038, allocations: 68.16 kB / 375.9 MB, free: 2.766 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.1038, allocations: 4 kB / 375.9 MB, free: 2.762 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001752/0.104, allocations: 93.48 kB / 376 MB, free: 2.664 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.274e-05/0.104, allocations: 4 kB / 376 MB, free: 2.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.104, allocations: 0 / 376 MB, free: 2.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.104, allocations: 8.125 kB / 376 MB, free: 2.652 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.241e-05/0.1041, allocations: 8 kB / 376 MB, free: 2.645 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.814e-06/0.1041, allocations: 3.984 kB / 376 MB, free: 2.641 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.43e-05/0.1041, allocations: 7.938 kB / 376 MB, free: 2.633 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.044e-05/0.1041, allocations: 4 kB / 376 MB, free: 2.629 MB / 334.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 9.631e-05/0.1042, allocations: 117.8 kB / 376.1 MB, free: 2.504 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.917e-05/0.1043, allocations: 61.58 kB / 376.2 MB, free: 2.438 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.103e-05/0.1044, allocations: 16.33 kB / 376.2 MB, free: 2.414 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.1044, allocations: 0 / 376.2 MB, free: 2.414 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.1044, allocations: 4 kB / 376.2 MB, free: 2.41 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.1044, allocations: 4 kB / 376.2 MB, free: 2.406 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001619/0.1045, allocations: 117.2 kB / 376.3 MB, free: 2.262 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1045, allocations: 0 / 376.3 MB, free: 2.262 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.08e-05/0.1046, allocations: 11.98 kB / 376.3 MB, free: 2.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.1046, allocations: 0 / 376.3 MB, free: 2.25 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/0.1046, allocations: 4 kB / 376.3 MB, free: 2.246 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.1046, allocations: 4 kB / 376.3 MB, free: 2.242 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1046, allocations: 0 / 376.3 MB, free: 2.242 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002159/0.1048, allocations: 189.4 kB / 376.5 MB, free: 2.035 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.563e-05/0.1049, allocations: 19.94 kB / 376.6 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.009e-05/0.1049, allocations: 11.94 kB / 376.6 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.422e-05/0.105, allocations: 0 / 376.6 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.574e-05/0.105, allocations: 11.97 kB / 376.6 MB, free: 1.992 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.773e-06/0.105, allocations: 4.062 kB / 376.6 MB, free: 1.988 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.289e-05/0.1051, allocations: 111.2 kB / 376.7 MB, free: 1.879 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1051, allocations: 0 / 376.7 MB, free: 1.879 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002427/0.1053, allocations: 8 kB / 376.7 MB, free: 1.871 MB / 334.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 9.418e-05/0.1054, allocations: 103.2 kB / 376.8 MB, free: 1.762 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001658/0.1056, allocations: 48.03 kB / 376.8 MB, free: 1.715 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.1056, allocations: 0 / 376.8 MB, free: 1.715 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.584e-05/0.1056, allocations: 15.94 kB / 376.9 MB, free: 1.699 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003231/0.106, allocations: 23.95 kB / 376.9 MB, free: 1.676 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003723/0.1063, allocations: 197 kB / 377.1 MB, free: 1.449 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.594e-05/0.1064, allocations: 83.31 kB / 377.2 MB, free: 1.348 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.298e-05/0.1065, allocations: 8.25 kB / 377.2 MB, free: 1.34 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.29e-05/0.1065, allocations: 12.5 kB / 377.2 MB, free: 1.324 MB / 334.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1065, allocations: 0 / 377.2 MB, free: 1.324 MB / 334.1 MB Notification: Performance of Templates: time 0.003274/0.1098, allocations: 0.6798 MB / 377.9 MB, free: 0.6719 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile [Timeout 660] (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 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.186592157930136]